Keyword groups

You may define custom keyword groups and corresponding highlighting styles. This is useful if you want to highlight functions of a third party library, macros, constants etc.

You define a new group in two steps:

Define a new group in your language definition

To define a keyword group, use the following element:

$KEYWORDS(<group>)

The group-attribute is the name of the new keyword group. You can use the same group name for different groups.

Add a corresponding highlighting style in your colour theme

Define a corresponding colour style in your theme file:

$KW_GROUP(group) = #RRGGBB <bold> <italic> <underline>

Note that every group name which is listed in a language definition should be defined in the used colour theme.
The keyword groups "kwa"-"kwd" are defined for all colour themes.

Example:
# Some language definition...
$KEYWORDS(kwa)=for repeat while [...]
$KEYWORDS(debug)=ASSERT DEBUG
$ML_COMMENT=/* */
# ...

# Some colour theme...
$KW_GROUP(kwa)=#ddbb00 bold
$KW_GROUP(debug)=#ff0000 bold
$COMMENT=#978345 italic
# ...
Back