From 17d2d5c793eaa95b170684213b18ff2e3f5ce291 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 14 May 2021 13:54:44 +1000 Subject: Add SC_ELEMENT_WHITE_SPACE_BACK to set the background colour of visible whitespace. --- doc/ScintillaDoc.html | 55 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 12 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index e91c80783..380a8e81d 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -128,7 +128,7 @@

Scintilla Documentation

-

Last edited 11 May 2021 NH

+

Last edited 13 May 2021 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -2302,9 +2302,10 @@ struct Sci_TextToFind { SCI_SETVIEWWS(int viewWS)
SCI_GETVIEWWS → int
SC_ELEMENT_WHITE_SPACE : colouralpha
- SCI_SETWHITESPACEFORE(bool + SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
- SCI_SETWHITESPACEBACK(bool + SC_ELEMENT_WHITE_SPACE_BACK : colouralpha
+ SCI_SETWHITESPACEBACK(bool useSetting, colour back)
SCI_SETWHITESPACESIZE(int size)
@@ -2368,13 +2369,16 @@ struct Sci_TextToFind {

SC_ELEMENT_WHITE_SPACE : colouralpha
SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
+ SC_ELEMENT_WHITE_SPACE_BACK : colouralpha
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 - SCI_SETWHITESPACEBACK.
- SCI_SETWHITESPACEFORE also changes the white space colour but SC_ELEMENT_WHITE_SPACE - is preferred and allows setting translucency.

+ 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 + allowing translucency.

SCI_SETWHITESPACESIZE(int size)
SCI_GETWHITESPACESIZE → int
@@ -3288,8 +3292,8 @@ struct Sci_TextToFind { When undefined the return value is 0 which is equivalent to completely transparent black. These colours may be useful when defining styles with similarities such as synthesizing dark mode styles that use the same colours as the system

-

On Win32, autocompletion list colours like SC_ELEMENT_LIST are currently available. - On Cocoa, selection background colours like SC_ELEMENT_SELECTION_BACK are currently available. +

On Win32, autocompletion list colours like SC_ELEMENT_LIST are currently provided by the platform layer and + on Cocoa, selection background colours like SC_ELEMENT_SELECTION_BACK are provided.

@@ -3301,7 +3305,9 @@ struct Sci_TextToFind { - + + + @@ -3312,6 +3318,7 @@ struct Sci_TextToFind { + @@ -3319,6 +3326,7 @@ struct Sci_TextToFind { + @@ -3326,6 +3334,7 @@ struct Sci_TextToFind { + @@ -3333,6 +3342,7 @@ struct Sci_TextToFind { + @@ -3340,6 +3350,7 @@ struct Sci_TextToFind { + @@ -3347,6 +3358,7 @@ struct Sci_TextToFind { + @@ -3354,6 +3366,7 @@ struct Sci_TextToFind { + @@ -3361,6 +3374,7 @@ struct Sci_TextToFind { + @@ -3368,6 +3382,7 @@ struct Sci_TextToFind { + @@ -3375,6 +3390,7 @@ struct Sci_TextToFind { + @@ -3382,6 +3398,7 @@ struct Sci_TextToFind { + @@ -3389,6 +3406,7 @@ struct Sci_TextToFind { + @@ -3396,6 +3414,7 @@ struct Sci_TextToFind { + @@ -3403,6 +3422,7 @@ struct Sci_TextToFind { + @@ -3410,22 +3430,33 @@ struct Sci_TextToFind { + - + + - + + + + + + + + + +
Translucent?PlatformsActiveBase Description
0 Opaque Win32Win32 Text colour in autocompletion lists
1 Opaque Win32Win32 Background colour of autocompletion lists
2 Opaque Win32Win32 Text colour of selected item in autocompletion lists
3 Opaque Win32Win32 Background colour of selected item in autocompletion lists
10 Translucent All Text colour of main selection
11 Translucent AllCocoa Background colour of main selection
12 Translucent All Text colour of additional selections
13 Translucent AllCocoa Background colour of additional selections
14 Translucent All Text colour of selections when another window contains the primary selection
15 Translucent All Background colour of selections when another window contains the primary selection
16 Translucent All Text colour of selections when another window has focus
17 Translucent AllCocoa Background colour of selections when another window has focus
40 Translucent All Colour of caret for main selection
41 Translucent All Colour of caret for additional selections
42 Translucent All Colour of carets when another window has focus
SC_ELEMENT_CARET_LINE_BACK 50 Translucent All Colour of caret line background
SC_ELEMENT_WHITE_SPACE 60 Translucent All Colour of visible white space
SC_ELEMENT_WHITE_SPACE_BACK61OpaqueAllColour of visible white space background
-- cgit v1.2.3