Syntax Highlighting

Navigation:  Reference > Ribbon Tabs and Dialogs > The Write Tab > Font >

Syntax Highlighting

Previous pageReturn to chapter overviewNext page

This menu option applies highlights program code text to make it easier to read. A number of programming languages are supported, and you can customize the highlighting styles for each program language.

For more details see Formatting program source code.

Options for predefined languages

This dialog is displayed when you select Format > Syntax Highlighting > Customize. The following options are available when you select one of the predefined languages:

DLG_HighlighterCustomize  

Format with style:

The basic appearance of all text formatted with the Syntax Highlighting function is controlled by the standard Code Example style. This is the currently only style you can use for syntax highlighting.

BTN_EditStyle

Opens the Edit Styles dialog to edit the Code Example style.

Elements:

Settings for defining the color and font styles of the various elements highlighted by the function.

Format with soft breaks:

Use soft line breaks instead of paragraphs for code examples. This can be necessary to get the desired results in some cases.

Reset defaults:

Resets all settings for the current language to the default values. This also replaces any reserved words you have loaded.

Additional options for custom highlighters

If you select one of the three custom highlighters at the bottom of the list you have the following additional options for defining your own language highlighting rules:

Quotes:

Specify whether single or double quotes are to be identified as quotes.

Identifiers:

The relevant identifier characters for the language you are using..

Comments:

The commenting style used.

Edit resterved words:

Create and edit a list of reserved words for your custom language. You can paste lists of words into the editing dialog.

See also:

Formatting program source code