Syntax Highlight

Oxygen supports syntax highlight for XML, DTD, Relax NG (XML and Compact Syntax), Java, JavaScript, PHP,CSS, XQuery, C++, C, Perl, Properties, SQL, Shell and Batch documents. While Oxygen provides a default color configuration for highlighting the tokens, you may choose to customize it, as required, using the Syntax Highlight preferences panel.

The Syntax Highlight preferences panel is opened from menu Window > Preferences > oXygen > Editor > Syntax Highlight .

The Colors Preferences Panel

For each document type there is a set of tokens. When a document type node is expanded, the associated tokens are listed. For each token the color and the font style that is configured here will be used in Text mode of the editor panel. The tokens for XML documents are used also in XSD, XSL, RNG documents so the Preview area has 4 tabs when an XML token is selected in the Element area : XML, XSD, XSL, RNG.

When you don't know the name of the token that you want to configure just select a token by clicking directly on that type of token in the Preview area.

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

The Preview panel displays the appearance of all token colors in a sample document as they will be rendered in the editor.

Modifications are saved when the OK button is clicked. The Restore Defaults button changes all the token colors to the default values.