setIndicatorAttributes

setIndicatorAttributes(indicatorNumber: Integer;
                       style:           Integer;
                       foreColor:       Integer);

The setIndicatorAttributes method of the JadeTextEdit class sets the text editor indicator attributes (for example, marking text to indicate syntax errors).

Use the indicatorNumber parameter to specify the number of the indicator whose style and color you want to set, in the range zero (0) through 7.

The text editor has three indicators: zero (0), 1, and 2, whose default indicator styles and colors are listed in the following table.

Indicator Number Style Color RGB Value
0 SC_INDIC_SQUIGGLE Dark Green 0,127,0
1 SC_INDIC_TT Light Blue 0,0,255
2 SC_INDIC_PLAIN Light red 255,0,0

Use the JadeTextEdit class constants listed in the following table to specify the style of the indicator in the style parameter.

Constant Value Constant Value
SC_INDIC_BOX 6 SC_INDIC_DIAGONAL 3
SC_INDIC_HIDDEN 5 SC_INDIC_PLAIN 0
SC_INDIC_SQUIGGLE 1 SC_INDIC_STRIKE 4
SC_INDIC_TT 2    

In the foreColor parameter, specify the color of the indicator.