TagBar Menu Commands

Right-clicking on a tree item in TagBar displays the follwing menu commands:
Right-click TagBar menu

Add Content

Content nodes allow you to define common or repeatedly used content for a particular element. To define a content node for an element or attribute, right-click on the item and select Add Content. After you type some text and click OK, a new child node will be created for the element or attribute you selected. If the Insert Mode for this content node is Auto Insert, when you drag the parent element or attribute into the document the content will be placed inside the element’s start and end tags, or as the attribute value respectively.

Note You can define multiple content nodes for an element or attribute and include some or all of them by setting the Insert Mode properties of each node. You can also drag content nodes directly into the document, inserting the content node's contents without an element or attribute.


Show Children

Displays a list of hidden elements. See Hide.


Auto Insert and Insert Mode

One of the most convenient features of TagBar is the ability to specify child elements, attributes and content that should be inserted when a given element is inserted.

The Auto Insert functionality is controlled at both a global and local level. There is a global preference called Insert Mode, which controls the overall behaviour of TagBar. This preference is accessible by right clicking on a tree item in TagBar. The values of Insert Mode include:

At a local level, you can individually specify which elements, attributes and content nodes should be automatically inserted. To switch an item on or off, right click on the item and select Auto Insert. Elements that are set for Auto Insert are displayed in bold in the TagBar tree. If the global Insert Mode preference is set to Auto Insert Children, only the elements that are bold in TagBar, will be placed in the document.


Hide

If you are working with a very large DTD/XML Schema, it may be convenient to only display some portions of the DTD/XML Schema in TagBar. You can hide individual elements, attributes and content nodes in order to reduce clutter in TagBar. To hide a TagBar item, right-click on the item and select Hide. To show hidden items, click on the item’s parent and select the item from the Show Children list. You cannot hide the root element.

Note Hidden items are still inserted if the global preference and the Auto Insert value for that item dictate that it should be inserted. This is convenient if you have a lot of standard elements that you want to insert, but do not need to see them in TagBar.


Load TagBar

Displays the Load DTD/XML Schema into TagBar dialogue box where an existing DTD or XML Schema file can be selected and loaded into TagBar.