From 8855099f0f8b0bf9720de04c8b188f577d4f932f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 13 Jul 2010 21:46:36 +1000 Subject: Split OptionSet out into its own file. Provide API access to lexer options metadata - property names, types, descriptions and word list descriptions. --- doc/ScintillaDoc.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 41c3a5d43..0f22dd849 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -5207,10 +5207,14 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_LOADLEXERLIBRARY(<unused>, const char *path)
SCI_COLOURISE(int start, int end)
+ SCI_PROPERTYNAMES(<unused>, char *names)
+ SCI_PROPERTYTYPE(const char *name)
+ SCI_DESCRIBEPROPERTY(const char *name, char *description)
SCI_SETPROPERTY(const char *key, const char *value)
SCI_GETPROPERTY(const char *key, char *value)
SCI_GETPROPERTYEXPANDED(const char *key, char *value)
SCI_GETPROPERTYINT(const char *key, int default)
+ SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions)
SCI_SETKEYWORDS(int keyWordSet, const char *keyWordList)
SCI_GETSTYLEBITSNEEDED @@ -5255,6 +5259,17 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ "1" and your lexer or container supports folding, fold levels are also set. This message causes a redraw.

+

SCI_PROPERTYNAMES(<unused>, char *names)
+ SCI_PROPERTYTYPE(const char *name)
+ SCI_DESCRIBEPROPERTY(const char *name, char *description)
+ Information may be retrieved about the properties that can be set for the current lexer. + This information is only available for newer lexers. + SCI_PROPERTYNAMES returns a string with all of the valid properties separated by "\n". + If the lexer does not support this call then an empty string is returned. + Properties may be boolean (SC_TYPE_BOOLEAN), integer (SC_TYPE_INTEGER), + or string (SC_TYPE_STRING) and this is found with SCI_PROPERTYTYPE. + A description of a property in English is returned by SCI_DESCRIBEPROPERTY.

+

SCI_SETPROPERTY(const char *key, const char *value)
You can communicate settings to lexers with keyword:value string pairs. There is no limit to the number of keyword pairs you can set, other than available memory. key is a @@ -5337,6 +5352,9 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ There is nothing to stop you building your own keyword lists into the lexer, but this means that the lexer must be rebuilt if more keywords are added.

+

SCI_DESCRIBEKEYWORDSETS(<unused>, char *descriptions)
+ A description of all of the keyword sets separated by "\n" is returned by SCI_DESCRIBEKEYWORDSETS.

+

SCI_GETSTYLEBITSNEEDED
Retrieve the number of bits the current lexer needs for styling. This should normally be the argument to SCI_SETSTYLEBITS. -- cgit v1.2.3