From f4d5c00424eff7c84b4152b4df4de5c0ba4b12bc Mon Sep 17 00:00:00 2001 From: Ferdinand Oeinck Date: Tue, 4 Oct 2022 09:35:06 +1100 Subject: Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION to make it easier to edit around invisible text. This also allows representing long lexemes with a single character to provide a summarized view. --- doc/ScintillaDoc.html | 11 +++++++++++ doc/ScintillaHistory.html | 6 ++++++ 2 files changed, 17 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index a9a7e72ed..fb5d59dfd 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3248,6 +3248,8 @@ struct Sci_TextToFindFull { SCI_STYLESETCHECKMONOSPACED(int style, bool checkMonospaced)
SCI_STYLEGETCHECKMONOSPACED(int style) → bool
+ SCI_STYLESETINVISIBLEREPRESENTATION(int style, const char *representation)
+ SCI_STYLEGETINVISIBLEREPRESENTATION(int style, char *representation NUL-terminated) → int
SCI_SETFONTLOCALE(<unused>, const char *localeName)
SCI_GETFONTLOCALE(<unused>, char *localeName) → int
@@ -3514,6 +3516,15 @@ struct Sci_TextToFindFull { Applications may apply the 'check monospaced' attribute just to fonts known to be monospaced or on all fonts, leaving it to Scintilla to reject fonts that are proportional.

+

SCI_STYLESETINVISIBLEREPRESENTATION(int style, const char *representation)
+ SCI_STYLEGETINVISIBLEREPRESENTATION(int style, char *representation NUL-terminated) → int
+ When a style is made invisible with SCI_STYLESETVISIBLE, text is difficult to edit as + the cursor can be at both sides of the invisible text segment. With these messages invisible text segements can be made visible with a single + UTF8 characater giving the user an indication if the cursor is left or right of the invisible text. The character is displayed using the current style.

+ +

The representation parameter is a zero terminated string holding the one character used to represent the invisible text segment. Only the first character + is used, the character is decoded as UTF-8.

+

SCI_SETFONTLOCALE(<unused>, const char *localeName)
SCI_GETFONTLOCALE(<unused>, char *localeName NUL-terminated) → int
These messages set the locale used for font selection with language-dependent glyphs. diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index abbf4f4ef..cac690226 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -573,6 +573,7 @@ Jacky Yang Reinhard Nißl + Ferdinand Oeinck

Releases

@@ -584,6 +585,11 @@ Released 27 August 2022.
  • + Added SCI_STYLESETINVISIBLEREPRESENTATION to make it easier to edit around invisible text. + This also allows representing long lexemes with a single character to provide a summarized view. + Feature #1453. +
  • +
  • Removed NotifyLexerChanged notification from DocWatcher. This is a private interface but could be used by independent platform layers and was exposed by ScintillaDocument in the Qt implementation of ScintillaEdit. -- cgit v1.2.3