IDA SDK
Color definitions

Here we describe the structure of embedded escape sequences used to implement syntax highlighting.

Here we describe the structure of embedded escape sequences used to implement syntax highlighting.

IDP module should insert appropriate escape characters into the output lines as necessary. This approach allows to create an IDP module without the syntax highlighting too - just don't use escape sequences.

A typical color sequence looks like this:

COLOR_ON COLOR_xxx text COLOR_OFF COLOR_xxx

The first 2 items turn color 'xxx' on, then the text follows, and the color is turned off by two last items.

For the convenience we've defined a set of macro definitions and functions to deal with colors.