From c173fc47fda7bb86399bd777540bb17f8e05172d Mon Sep 17 00:00:00 2001
From: YX Hao
Date: Fri, 14 May 2021 13:45:47 +1000
Subject: Feature [feature-requests:#1402] Add SC_ELEMENT_WHITE_SPACE to set
the colour of visible whitespace including translucency.
---
doc/ScintillaDoc.html | 18 +++++++++++++++---
doc/ScintillaHistory.html | 4 ++++
2 files changed, 19 insertions(+), 3 deletions(-)
(limited to 'doc')
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html
index 990868241..e91c80783 100644
--- a/doc/ScintillaDoc.html
+++ b/doc/ScintillaDoc.html
@@ -2301,6 +2301,7 @@ struct Sci_TextToFind {
White space
SCI_SETVIEWWS(int viewWS)
SCI_GETVIEWWS → int
+ SC_ELEMENT_WHITE_SPACE : colouralpha
SCI_SETWHITESPACEFORE(bool
useSetting, colour fore)
SCI_SETWHITESPACEBACK(bool
@@ -2364,12 +2365,16 @@ struct Sci_TextToFind {
The effect of using any other viewWS value is undefined.
- SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
+
+ SC_ELEMENT_WHITE_SPACE : colouralpha
+ SCI_SETWHITESPACEFORE(bool useSetting, colour fore)
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 SCI_SETWHITESPACEFORE and
- SCI_SETWHITESPACEBACK.
+ 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.
SCI_SETWHITESPACESIZE(int size)
SCI_GETWHITESPACESIZE → int
@@ -3414,6 +3419,13 @@ struct Sci_TextToFind {
All |
Colour of caret line background |
+
+ SC_ELEMENT_WHITE_SPACE |
+ 60 |
+ Translucent |
+ All |
+ Colour of visible white space |
+
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 8fdea24bc..c0123dd4a 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -559,6 +559,7 @@
| cshnik |
Petko Georgiev |
+ YX Hao |
@@ -599,6 +600,9 @@
Add SCI_GETELEMENTBASECOLOUR to return the default values for element colours.
+ Add SC_ELEMENT_WHITE_SPACE to set the colour of visible whitespace including translucency.
+
+
Make idle actions wrapping and background styling smoother by
measuring per-byte instead of per-line and allowing just one line to be
processed in a time slice.
--
cgit v1.2.3