From 57f5c36ccf0ddc9be4b348bbe39cf3347ea8381c Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 29 Jul 2021 12:43:47 +1000 Subject: Add SC_ELEMENT_FOLD_LINE to set the colour of fold lines. --- doc/ScintillaDoc.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 531fca5aa..511632937 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -128,7 +128,7 @@

Scintilla Documentation

-

Last edited 17 July 2021 NH

+

Last edited 29 July 2021 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -2395,8 +2395,8 @@ struct Sci_TextToFind { SCI_SETWHITESPACEBACK(bool useSetting, colour back)
By default, the colour of visible white space is determined by the lexer in use. The foreground and/or background colour of all visible white space can be set globally, overriding - the lexer's colours with SC_ELEMENT_WHITE_SPACE - and SC_ELEMENT_WHITE_SPACE_BACK. + the lexer's colours with SC_ELEMENT_WHITE_SPACE + and SC_ELEMENT_WHITE_SPACE_BACK. .
SCI_SETWHITESPACEFORE and SCI_SETWHITESPACEBACK also change the white space colours but the element APIs are preferred with SC_ELEMENT_WHITE_SPACE @@ -3496,6 +3496,14 @@ struct Sci_TextToFind { Background colour of active hot spot + + SC_ELEMENT_FOLD_LINE + 80 + Translucent + All + + Colour of fold lines + @@ -7007,6 +7015,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_SETAUTOMATICFOLD(int automaticFold)
SCI_GETAUTOMATICFOLD → int
SCI_SETFOLDFLAGS(int flags)
+ SC_ELEMENT_FOLD_LINE : colouralpha
SCI_GETLASTCHILD(line line, int level) → line
SCI_GETFOLDPARENT(line line) → line
SCI_SETFOLDEXPANDED(line line, bool @@ -7086,9 +7095,14 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ update to match your changes.

SCI_SETFOLDFLAGS(int flags)
+ SC_ELEMENT_FOLD_LINE : colouralpha
In addition to showing markers in the folding margin, you can indicate folds to the user by - drawing lines in the text area. The lines are drawn in the foreground colour set for
STYLE_DEFAULT. Bits set in + drawing lines in the text area. + The lines are drawn in the SC_ELEMENT_FOLD_LINE + colour if set. + If it is not set then the foreground colour set for STYLE_DEFAULT is used. + Bits set in flags determine where folding lines are drawn:

-- cgit v1.2.3