diff options
author | nyamatongwe <devnull@localhost> | 2010-05-05 23:26:16 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-05-05 23:26:16 +0000 |
commit | 0df3de7c7a9c0f22099195dfb2515750ef09ef23 (patch) | |
tree | 2193b2fd479ea7dd4786be020827e0dc91f8da64 | |
parent | 10a49700bace0f2f904d3beeefc6c0c36adfb480 (diff) | |
download | scintilla-mirror-0df3de7c7a9c0f22099195dfb2515750ef09ef23.tar.gz |
Exmplained about finding properties from source code.
-rw-r--r-- | doc/ScintillaDoc.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 530e8d1bc..c57493fe2 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -5265,6 +5265,12 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ Property names should start with "lexer.<lexer>." or "fold.<lexer>." when they apply to one lexer or start with "lexer." or "fold." if they apply to multiple lexers.</p> + <p>Applications may discover the set of properties used by searching the source code of lexers for lines that contain + <code>GetProperty</code> and a double quoted string and extract the value of the double quoted string as the property name. + The <code>scintilla/src/LexGen.py</code> script does this and can be used as an example. + Documentation for the property may be located above the call as a multi-line comment starting with + <br/><code>// property <property-name></code></p> + <p><b id="SCI_GETPROPERTY">SCI_GETPROPERTY(const char *key, char *value)</b><br /> Lookup a keyword:value pair using the specified key; if found, copy the value to the user-supplied buffer and return the length (not including the terminating 0). If not found, copy an empty string |