Keyword Builder

The keyword builder is a dialog which allows you to create and modify colorization definitions. A colorizer definition is needed to tell CRiSP how to perform colorization of keywords for files of a particular type. CRiSP comes with a variety of supported languages, but you can use this dialog to create your own or to modify a supplied definition. For example, you might be programming in C and want to add custom function libraries so that they are colored in a different color.

In order to create a colorizer there are three types of things you need to define:

  • Special parsing characters   
  • Global attributes
  • Keywords

Character

character

The character classes are used to define what a keyword looks like. For instance, in the C language, the acceptable characters making up a symbol are the upper and lower case letters, the digits (0-9) and the underscore. ABC_DEF is a perfectly valid symbol name. In some other language, maybe the underscore is not valid; in shell scripts, the dollar sign is used to introduce a symbol but can also terminate a symbol name, e.g. $HOST$PWD. The character class definitions are pseudo-regular expressions containing character classes using the [..] notation.

Global Options

The global attributes describe aspects of the language you are about to colorize. For instance all keywords may be specified as case independent, or a special language syntax needs to be catered for. The attributes which you can specify are described in the flags section.

Keyword Builder

The keyword builder is a dialog which allows you to create and modify colorization definitions. A colorizer definition is needed to tell CRiSP how to perform colorization of keywords for files of a particular type. CRiSP comes with a variety of supported languages, but you can use this dialog to create your own or to modify a supplied definition. For example, you might be programming in C and want to add custom function libraries so that they are colored in a different color.