diff options
author | Neil <nyamatongwe@gmail.com> | 2020-09-09 09:34:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-09-09 09:34:44 +1000 |
commit | ae4556924ac22c57b7a74376522c7a37b047d90d (patch) | |
tree | 220500c165a6fe53aaa1e672289ff50361db1a5d | |
parent | 2e8e2790c726b2b85bd0524cc25d1371f21d0529 (diff) | |
download | scintilla-mirror-ae4556924ac22c57b7a74376522c7a37b047d90d.tar.gz |
Added information on lexer library functions SetLibraryProperty and
GetLibraryPropertyNames.
-rw-r--r-- | doc/ScintillaDoc.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index d4bea6b60..1110f7e46 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -119,7 +119,7 @@ <h1>Scintilla Documentation</h1> - <p>Last edited 29 March 2020 NH</p> + <p>Last edited 9 September 2020 NH</p> <p>There is <a class="jump" href="Design.html">an overview of the internal design of Scintilla</a>.<br /> @@ -289,6 +289,16 @@ As the protocol only supports object lexers, an additional function <code>CreateLexer(const char *name)</code> is exposed which will create a lexer object (ILexer5 *) for any object lexer or function lexer. </p> + + <p>Lexer libraries that provide the same functions as Lexilla may provide lexers for use by Scintilla, + augmenting or replacing those provided by Lexilla. + To allow initialisation of lexer libraries, a <code>SetLibraryProperty(const char *key, const char *value)</code> + may optionally be implemented. For example, a lexer library that uses XML based lexer definitions may + be provided with a directory to search for such definitions. + Lexer libraries should ignore any properties that they do not understand. + The set of properties supported by a lexer library is specified as a '\n' separated list of property names by + an optional <code>const char *GetLibraryPropertyNames()</code> function. + </p> <p>A lexer created by Lexilla may be used in Scintilla by calling <a class="seealso" href="#SCI_SETILEXER">SCI_SETILEXER</a>.</p> |