From 23b2a54292964dc653d7ebb64c4b2a044eeaa8e7 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 15 Mar 2022 15:14:42 +1100 Subject: Feature [feature-requests:#1431] Add SCI_GETSTYLEINDEXAT API to return styles over 127 as positive integers. --- doc/ScintillaDoc.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index c463dc3c2..782f299eb 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -129,7 +129,7 @@

Scintilla Documentation

-

Last edited 2 February 2021 NH

+

Last edited 9 March 2022 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -543,6 +543,7 @@ SCI_CLEARDOCUMENTSTYLE
SCI_GETCHARAT(position pos) → int
SCI_GETSTYLEAT(position pos) → int
+ SCI_GETSTYLEINDEXAT(position pos) → int
SCI_GETSTYLEDTEXT(<unused>, Sci_TextRange *tr) → position
SCI_RELEASEALLEXTENDEDSTYLES
SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles) → int
@@ -694,9 +695,15 @@ This returns the character at pos in the document or 0 if pos is negative or past the end of the document.

-

SCI_GETSTYLEAT(position pos) → int
+

+ SCI_GETSTYLEAT(position pos) → int
+ SCI_GETSTYLEINDEXAT(position pos) → int
This returns the style at pos in the document, or 0 if pos is - negative or past the end of the document.

+ negative or past the end of the document. + SCI_GETSTYLEAT may return a negative number for styles over 127 whereas SCI_GETSTYLEINDEXAT + will only return positive numbers. + SCI_GETSTYLEINDEXAT should be preferred as it handles styles more consistently and may avoid problems + with lexers that define more than 128 styles.

SCI_RELEASEALLEXTENDEDSTYLES
SCI_ALLOCATEEXTENDEDSTYLES(int numberStyles) → int
-- cgit v1.2.3