More powerful support for editing the XML markup is offered via actions included in the contextual menu. Two types of actions are available: generic actions(actions that not depends on a specific document type) and document type actions(actions that are configured for a specific document type).
The generic actions are:
Cut, Copy, Paste, Undo, Redo - common edit actions with the same functionality as those found in the text editor.
Paste As XML - similar to Paste operation, except that the clipboard's content is considered to be XML.
Toggle Comment - encloses the currently selected text in an XML comment, or removes the comment if it is commented.
Refactoring - contains a series of actions designed to alter the document's structure:
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. A
#x<hexadecimal value> - e.g. #x41
&#x<hexadecimal value>; - e.g. A
Start Content Completion - displays the Content Completion window.
Select - contains the following actions:
Select -> Select Element - selects the entire element at the current caret position.
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.
You can select an element by triple clicking inside its content. If the element is empty you can select it by double clicking it.
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 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.
Document type actions are specific to some document type. Examples of such actions can be found in section Predefined document types.