Download XML Editor User Manual

Transcript
Authoring in the tagless editor
A left-hand side stripe paints a vertical thin light blue bar indicating the vertical span of the element found
at caret position. Also a top stripe indicates the path from document root to the current element.
Figure 5.10. Top stripe in Editor view
The last element is also highlighted by a thin light blue bar for easier identification. Clicking one element
from the top stripe selects the entire element in the Editor view.
Figure 5.11. The top stripe pop-up menu
The Append child, Insert before and Insert after submenus allow to quickly insert new tags in the document
at the place of the selected element. The Append child submenu lists the names of all the elements which
are allowed by the schema associated with the current document as child of the current element. The effect
is the same as typing the '<' character and selecting an element name from the popup menu offered by the
content completion assistant. The Insert before and Insert after submenus list the elements which are allowed
by the schema associated with the current document as siblings of the current element inserted immediately
before respectively after the current element.
The Cut, Copy, Paste and Delete items of the popup menu execute the same actions as the Edit menu items
with the same name on the elements currently selected in the stripe. The styles of the copied content is
preserved by the Cut and Copy operations, for example the display:block property or the tabular format of
the data from a set of table cells. The Paste before, Paste after and Paste as Child actions allow the user
to insert an well-formed element before, after or as a child of the currently selected element.
The Toggle Comment item of the outline tree popup menu encloses the currently selected element of the
top stripe in an XML comment, if the element is not commented, or uncomments it if it is commented.
Using the Rename Element action the selected element and the elements that have the same name as the
current element can be renamed according with the options from the Rename dialog.
When working on a large document the folding support can be used to collapse some elements content
leaving in focus only the ones you need to edit. Foldable elements are marked with a small triangle painted
in the upper left corner. Hovering with the mouse pointer over that marker, the entire content of the element
is highlighted by a dotted border for quick identification of the foldable area.
To position the cursor at the beginning or at the end of the document you can use Ctrl+Home and Ctrl+End,
respectively.
149