Chapter 3. The XML insert window

Plugins>XML>XML Insert displays the XML insert window. This window is floating by default, but it can be docked into the view from the dock menu (a little arrow in the upper right corner), or from the Docking pane of the Global Options dialog box.

This window lists elements that may be inserted at the caret position, all declared entities, and all IDs (element attributes with a value type of ID).

Clicking an element in the list with the left mouse button will insert it into the buffer and show the Edit Tag dialog box for specifying attributes. See Chapter 5, The edit tag dialog box for information about the Edit Tag dialog box. Clicking an element with the right mouse button will insert it in the text area, but the Edit Tag dialog box will not be shown.

Clicking an entity will insert it into the buffer.

Clicking an ID with the left mouse button will insert it into the buffer; clicking with the right mouse button will move the caret to the element that declares it.

If text is selected, each selection is wrapped in a pair of opening and closing tags. This is a very powerful feature; you can select any number of text chunks, and surround them with tags, all sharing a common set of attributes.