From 63c0fcd4f77b98f5c167f50876329e407aef84dc Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 23 Oct 2017 09:19:11 +1100 Subject: Backport: Document style metadata APIs. Backport of changeset 6405:0849bae316da. --- doc/ScintillaDoc.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index b3170a148..42242c606 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -6617,6 +6617,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_GETPRIMARYSTYLEFROMSTYLE(int style) → int
SCI_SETIDENTIFIERS(int style, const char *identifiers)
SCI_PRIVATELEXERCALL(int operation, int pointer) → int
+ SCI_GETNAMEDSTYLES → int
+ SCI_NAMEOFSTYLE(int style, char *name) → int
+ SCI_TAGSOFSTYLE(int style, char *tags) → int
+ SCI_DESCRIPTIONOFSTYLE(int style, char *description) → int

SCI_SETLEXER(int lexer)
SCI_GETLEXER → int
@@ -6794,6 +6798,23 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

SCI_PRIVATELEXERCALL(int operation, int pointer) → int
Call into a lexer in a way not understood by Scintilla.

+

Style Metadata

+

Lexers may provide information on the styles they use. + Lexers have to explicitly support this feature by implementing particular methods.

+ +

SCI_GETNAMEDSTYLES → int
+ Retrieve the number of named styles for the lexer.

+ +

SCI_NAMEOFSTYLE(int style, char *name) → int
+ Retrieve the name of a style. This is a C preprocessor symbol like "SCE_C_COMMENTDOC".

+ +

SCI_TAGSOFSTYLE(int style, char *tags) → int
+ Retrieve the tags of a style. This is a space-separated set of words like "comment documentation".

+ +

SCI_DESCRIPTIONOFSTYLE(int style, char *description) → int
+ Retrieve an English-language description of a style which may be suitable for display in a user interface. + This looks like "Doc comment: block comments beginning with /** or /*!".

+

Lexer Objects

Lexers are programmed as objects that implement the ILexer interface and that interact -- cgit v1.2.3