Language Keyword Styles

The simplest application of styles is for formatting language keywords. Each language contains a keyword list. Each keyword list item associates a keyword, for example while, with a style. The keyword list is edit­able. Source Insight displays the keyword using the associated style. You can edit the language keyword list in the Preferences: Languages dialog box, or by invoking the Keyword List command directly. See: Language Options.

To determine the formatting of any given word in a window, Source Insight locates the word in the keyword list of the appropriate language type. The keyword list contains a style name, which in turn implies the for­matting associated with the style.

Therefore, starting with a file name and a word in the file, Source Insight derives the word's style with this relationship:

inset_400018.png

 

Figure 3.9  The style used for a word in source text is determined by the keyword list of the language of the file type of the file in question.