From 8c9b09dd5f861e52590a154b2ad8ee0f0dc4e89f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 31 Dec 2019 20:19:24 +1100 Subject: Backport: Implement SCI_SETILEXER. Backport of changeset 7871:ff54e1fc74f3, but with the ability to distinguish between ILexer and ILexer5 interfaces. --- doc/ScintillaDoc.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index b3fe1e553..e9f3471c0 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -6857,6 +6857,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_SETLEXERLANGUAGE(<unused>, const char *language)
SCI_GETLEXERLANGUAGE(<unused>, char *language) → int
+ SCI_SETILEXER(bool iLexer5, pointer lexer)
SCI_LOADLEXERLIBRARY(bool iLexer5, const char *path)
SCI_COLOURISE(position start, position end)
@@ -6907,7 +6908,15 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ Lex*.cxx file and search for LexerModule. The third argument in the LexerModule constructor is the name to use.

-

To test if your lexer assignment worked, use SCI_SETILEXER(bool iLexer5, pointer lexer)
+ SCI_SETILEXER allows setting a lexer as an ILexer*. + The lexer may be implemented by an application or a shared library such as Lexilla. + iLexer5 indicates whether or not the library contains Scintilla lexers that implement + the ILexer5 interface defined in Scintilla 4.3+ (e.g. Lexilla). The default is to assume lexers + implement the ILexer interface defined in Scintilla 3.x. This flag must be set explicitly and + cannot be inferred.

+ +

To test if your lexer assignment worked, use SCI_GETLEXER before and after setting the new lexer to see if the lexer number changed.

-- cgit v1.2.3