Use the Style Options dialog to control the color scheme for all of the Syntax Highlighting Rules. Open the Style Options dialog by clicking the 'Tools > Options...' menu option and selecting Styles from the list.

The use of styles allows multiple Syntax Highlighting Rules to share a single color scheme (see Syntax Options to control the Syntax Highlighting Rules). For example, both commenting in C++ and PHP share the 'code-comment' style. Changing the 'code-comment' style affects the colors of all rules that use that style. All styles that begin with 'code-' are typically used in programming languages while all styles that being with 'tag-' are used in tag-based (e.g. XML, HTML) languages. The 'none' style can be used to apply no coloring to a rule.

A list of available styles is located in a table at the top of the dialog. After a style has been selected from the list, the style name can be changed using the Name field. Change the foreground (text) color of the style by clicking the Fore color box and selecting a color using the Color Selector Box. The background color of the style can also be changed by clicking the Back color box and selecting a color.

Additional styles can be created by clicking the New button and styles can be removed by clicking the Delete button. Note that if a style is in use by a Syntax Highlighting Rule is deleted, the style will remain in the Syntax Highlighting Rule until the rule is changed. Clicking the Up or Down icons will rearrange the styles in the list. Note that styles are exported automatically when the list of Syntax Highlighting Rules is exporting using the Syntax Options dialog.

Click the Reset button to restore all styles to their original settings.

Related Topics:
Syntax Options
View Menu