Syntax Highlight / Elements/Attributes by Prefix

The Colors preferences panel is opened from menu OptionsPreferences+Editor+Colors+Elements/Attributes by Prefix

 

Figure 24.31. The Elements/Attributes by Prefix preferences panel

The Elements/Attributes by Prefix preferences panel

One row of the table contains the association between a namespace prefix and the properties to mark start tags and end tags or attribute names in that prefix. Note that the marking mechanism does not look at the namespace bound to that prefix. If the prefix is bound to different namespaces in different XML elements of the same file all the tags and attribute names with the prefix will be marked with the same color.

You can edit the following color properties of the selected token:

Foreground color

The Foreground button opens a color dialog that allow setting the color properties for the selected token with one of the methods: Swatches, HSB or RGB.

Swatches

Displays a color palette containing a variety of colors from across the color spectrum and shades thereof. Select a color.

HSB

Hue, Saturation and Brightness (HSB) enables you to specify a color by describing it using hue, saturation and brightness.

RGB

Red, Green and Blue (RGB) enables you to specify a color using triplets of red, green and blue numbers.

Background color

The Background button opens the same color dialog as the Foreground button.

You can choose that only the prefix to be displayed in the chosen color by checking the Draw only the prefix with a separate color option.