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 editable. 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 formatting 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:
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.