24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Editing Documents | 53Figure 27: The Elements ViewThe Entities ViewThis view displays a list with all entities declared in the current document as well as built-in ones. Double clicking oneof the entities will insert it at the current cursor position. You can also sort entities by name and value.Figure 28: The Entities ViewCode TemplatesYou can define short names for predefined blocks of code called code templates. The short names are displayed in theContent Completion window if the word at cursor position is a prefix of such a short name. If there is no prefix at cursorposition, that is the character at the left of cursor is a whitespace, all the code templates are listed.<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> comes with a lot of predefined code templates but you can define your own code templatesfor any type of editor.To obtain the template list you can use the Content Completion on request shortcut key (usually CTRL-SPACE) or theCode Templates on request shortcut key (CTRL-SHIFT-SPACE). The first shortcut displays the code templates in thesame content completion list with elements from the schema of the document. The second shortcut displays only thecode templates and is the default shortcut of the action Document > Content Completion > Show Code Templates.The syntax of the code templates allows you to use the following editor variables:• ${caret} - The position where the caret is inserted. This variable can be used in a code template , in <strong>Author</strong> operations,or in a selection <strong>plugin</strong>.• ${selection} - The <strong>XML</strong> content of the current selection in the editor panel. This variable can be used in a codetemplate and <strong>Author</strong> operations,• ${ask('user-message', param-type, 'default-value' ?)} - To prompt for values at runtime, use the ask('user-message',param-type, 'default-value' ?) editor variable. The following parameters can be set:• 'user-message' - the actual message to be displayed. Note the quotes that enclose the message.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!