Editor - predefined templates for inserting
Are you missing a feature? Request its implementation here.
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Editor - predefined templates for inserting
Hello,
it would be nice to have possibility to specify custom templates (code fragments), which could be pasted similarly to other developer tools (Netbeans) - by writing short abbreviation (defined) and pressing Tab. For me it would be useful for identity transform in xslt templates. I use it very often but I still haven't remembered it yet.
Jan
it would be nice to have possibility to specify custom templates (code fragments), which could be pasted similarly to other developer tools (Netbeans) - by writing short abbreviation (defined) and pressing Tab. For me it would be useful for identity transform in xslt templates. I use it very often but I still haven't remembered it yet.
Jan
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Editor - predefined templates for inserting
Post by sorin_ristache »
Hello,
Code templates (both built-in ones and user defined ones) are available and can be inserted using the content completion window. You define custom templates in Preferences -> Editor -> Templates -> Code Templates.
You insert a code template in the same way as inserting XML elements and attributes with content completion: you type a prefix of the name of the prefix and Ctrl-Space displays all the templates with that prefix. The XSLT identity transform template has the name ct (the copy template).
Regards,
Sorin
Code templates (both built-in ones and user defined ones) are available and can be inserted using the content completion window. You define custom templates in Preferences -> Editor -> Templates -> Code Templates.
You insert a code template in the same way as inserting XML elements and attributes with content completion: you type a prefix of the name of the prefix and Ctrl-Space displays all the templates with that prefix. The XSLT identity transform template has the name ct (the copy template).
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Editor - predefined templates for inserting
Post by sorin_ristache »
Hello,
In Author mode you insert a custom code template that are different than the elements inserted by content completion or by double click in Elements view with a custom extension action that you configure in the document type for your Author document. Custom extension actions are created based on the Author API published in the Author SDK (which includes also many examples of source code of Author actions) and are configured in the document type in Preferences -> Document Type Association.
Regards,
Sorin
In Author mode you insert a custom code template that are different than the elements inserted by content completion or by double click in Elements view with a custom extension action that you configure in the document type for your Author document. Custom extension actions are created based on the Author API published in the Author SDK (which includes also many examples of source code of Author actions) and are configured in the document type in Preferences -> Document Type Association.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service