Documentation Center

Adding QuickInsert custom buttons - XML examples

This example shows how to change the QuickInsert group so that you can quickly add emphasis tags to text to make the text bold. The sample file includes an inline tag, emphasis that you can use to follow along with this example.

Procedure

  1. Decide where you want to use the custom QuickInsert button:
    • For the active project, go to the Projects view, and on the Home tab, select Project Settings.
    • For all future projects, go to File > Options.
  2. In the File Types tree, select your XML file type.
  3. Select QuickInsert.
  4. SelectAdd....
  5. In the Add QuickInsert dialog:
    1. In the Name box, type Emphasis.
    2. In the Description box, type Bold. This description is used for the tooltip.
    3. In the Type box, select Tag pair.
    4. In the Element box, select Emphasis.
    5. In the Formatting box, select Edit, and then select Activate from the Bold box.
  6. Select Display in QuickInsert group.
  7. Select OK.
  8. Create a new project or return to your open file. Select some text in the target segment, and then select the new button in the QuickInsert group. The selected text is formatted in bold and depending on your tag display settings, it is also surrounded by an <emphasis> </emphasis> tag pair.