Elements in a menuitems section in BehaviorConfig.xml
A menuitems section specifies custom (top) menu items.
menuitems-
The element that can be used to add additional menu items to the Custom tab. You can insert a
menuitemschild element within the following behavior elements:definitiontablelistimageinlinehighlightingblocktitlesheetbody
menuitem-
The element that defines an additional menu item. It can contain the following child elements:
- a required
labelchild element - either an
inserttemplateor atoggletemplatechild element
- a required
label- The label of the menu item.
inserttemplate-
Use this element to specify a certain XML structure, which will be inserted either below the current element or below the ancestor element that is specified in the
xpathattribute of themenuitemelement. toggletemplate-
Use
toggletemplateto either insert/wrap or remove/unwrap a specified XML element. If text is selected when you usetoggletemplate, then the text gets wrapped with the specified element; otherwise, the element is simply inserted. If text is already wrapped within the XML element, usingtoggletemplateunwraps/removes the element from the text while leaving the text itself intact. Typically, you would use a toggle template forinlineorhighlightingelements.