Download XML Author 10.3 User Manual for Eclipse

Transcript
Authoring in the tagless editor
• Select -> Select Content - selects the entire content of the element at the current caret position, excluding the
start and end tag. Performing this action repeatedly will result in the selection of the content of the ancestor of
the currently selected element content.
• Select -> Select Parent - selects the parent of the element at the current caret position.
Note
You can select an element by triple clicking inside its content. If the element is empty you can select it by
double clicking it.
• Refactoring - contains a series of actions designed to alter the document's structure:
• Toggle Comment - encloses the currently selected text in an XML comment, or removes the comment if it is
commented;
• Split Element - splits the content of the closest element that contains the caret's position. Thus, if the caret is
positioned at the beginning or at the end of the element, the newly created sibling will be empty;
• Join Elements - joins two adjacent elements that have the same name. The action is available only when the caret
position is between the two adjacent elements. Also, joining two elements can be done by pressing the Delete or
Backspace keys and the caret is positioned between the boundaries of these two elements.
• Surround with Tag... - selected text in the editor is marked with the specified tag.
• Surround with '<Tag name>' - selected text in the editor is marked with start and end tags of the last 'Surround
with Tag...' action.
• Rename Element - the element from the caret position and the elements that have the same name as the current
element can be renamed according with the options from the Rename dialog.
• Delete Element Tags - deletes the tags of the closest element that contains the caret's position. This operation is
also executed if the start or end tags of an element are deleted by pressing the Delete or Backspace keys.
• Insert Entity - allows the user to insert a predefined entity or a character entity. Surrogate character entities (range
#x10000 to #x10FFFF) are also accepted.
Character entities can be entered in one of the following forms:
• #<decimal value> - e.g. #65
• &#<decimal value>; - e.g. &#65;
• #x<hexadecimal value> - e.g. #x41
• &#x<hexadecimal value>; - e.g. &#x41;
• Open File at Cursor - opens in a new editor panel the file with the name under the current position of the caret in
the current document. If the file does not exist at the specified location the error dialog that is displayed contains a
Create new file action which displays the New file dialog. This allows you to choose the type or the template for
the file. If the action succeeds, the file is created with the referred location and name and is opened in a new editor
panel. This is useful when you decide first on the file name and after that you want to create it in the exact location
specified at the current cursor position.
93