setLinemarkAttributes(markNumber: Integer; style: Integer; foreColor: Integer; backColor: Integer);
The setLinemarkAttributes method of the JadeTextEdit class sets the text editor linemark.
Use the markNumber parameter to specify the linemark number whose style and colors you want to set. You can assign style and color attributes to any of the 32 text editor linemarks, numbered zero (0) through 31. (Values in the range 25 through 31 are used for folding.)
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_MARK_ARROW | 2 | SC_MARK_ARROWDOWN | 6 |
SC_MARK_ARROWS | 24 | SC_MARK_BACKGROUND | 22 |
SC_MARK_BOXMINUS | 14 | SC_MARK_BOXMINUSCONNECTED | 15 |
SC_MARK_BOXPLUS | 12 | SC_MARK_BOXPLUSCONNECTED | 13 |
SC_MARK_CHARACTER | 10000+character | SC_MARK_CIRCLE | 0 |
SC_MARK_CIRCLEMINUS | 20 | SC_MARK_CIRCLEMINUSCONNECTED | 21 |
SC_MARK_CIRCLEPLUS | 18 | SC_MARK_CIRCLEPLUSCONNECTED | 19 |
SC_MARK_DOTDOTDOT | 23 | SC_MARK_EMPTY | 5 |
SC_MARK_LCORNER | 10 | SC_MARK_LCORNERCURVE | 16 |
SC_MARK_MINUS | 7 | SC_MARK_PLUS | 8 |
SC_MARK_ROUNDRECT | 1 | SC_MARK_SHORTARROW | 4 |
SC_MARK_SMALLRECT | 3 | SC_MARK_TCORNER | 11 |
SC_MARK_TCORNERCURVE | 17 | SC_MARK_VLINE | 9 |
In the foreColor and backColor parameters, specify the foreground and background colors of the indicator. For details about the SCI_MARKERDEFINE and the associated SC_MARKNUM_* constants, see the Scintilla documentation at http://scintilla.sourceforge.net/ScintillaDoc.html.
The code fragment in the following example shows the use of the setLinemarkAttributes method.
// Set up bookmark linemark and bind keys jteSource.setLinemarkAttributes(JadeTextEdit.MARKER_JAD_LINEMARK, SC_MARK_ROUNDRECT, jteSource.rgb(255,180,180), jteSource.rgb(128,255,255));