Syntax Highlighting

Syntax highlighting is the display of programming language syntax tokens using different fonts and colors. This makes the source easier to follow and errors such as misplaced quotes easier to spot. All edit modes except for the plain text mode perform syntax highlighting.

The colors and styles used to highlight syntax tokens can be changed in the Colors & Styles pane of the Utilities>Global Options dialog box; see the section called The Global Options Dialog Box in Chapter 8.

Syntax highlighting can be enabled or disabled in one of the following three ways:

Figure 5-1. Syntax highlighting in action