Specifying Color of Tags

When you switch to the Markup Mode, markup tags are displayed. By default, tags and tag names belonging to any namespace are colored as specified in the No namespace URI line in the Preferences Dialog. You can modify these default colors as well as add colors for specific namespace URIs.

Figure 1. Markup tags of different URIs are colored differently.



The namespaces are distinguished with their URIs (not prefixes). For example, if you specify tag colors for the namespace URI http://www.syntext.com/Extensions/DocTemplate-2.0 , these colors will work for any tags of this URI independently of their prefixes, e.g. for xmlns:t="http://www.syntext.com/Extensions/DocTemplate-2.0" and xmlns:d="http://www.syntext.com/Extensions/DocTemplate-2.0":

Figure 2. Markup tags of the same URI are colored prefix-independently.



  1. Call up the Preferences Dialog.

    To call up the Preferences Dialog, choose Tools > Preferences .

  2. Select the Tag Style tab.

    Figure 3. Tag Style tab.



  3. To add tag color for a URI, do the following:
    1. Click the Add URI button.
    2. In the Namespace URI Color Schema Dialog, type the Namespace URI and specify the Tag Color and Text Color. Click OK.

      Figure 4. Namespace URI Color Schema Dialog.



  4. To modify tag color for a URI, do one of the following:
    1. Double-click a color in the Tag Color or Text Color column. Select a new color in the Select Color Dialog and click OK.

      Figure 5. Select Color Dialog.



    2. Double-click the URI in the Namespace URI column. In the Namespace URI Color Schema Dialog, specify new colors and click OK .
    3. Select the URI in the Namespace URI column and click the Edit URI button. In the Namespace URI Color Schema Dialog, specify new colors and click OK .
  5. To delete tag color for a URI, select the URI in the Namespace URI column and click the Delete URI button.
  6. Click the Apply button to apply the settings.
  7. Click the Close button to close the dialog.
Related tasks
Specifying Font of Tags
Specifying Indent Size of Blocks
Specifying Colors of Interlacing Blocks