From 183367a5cb3f02797f1cab1c85961afe1f5fda2a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 5 May 2010 23:26:16 +0000 Subject: Exmplained about finding properties from source code. --- doc/ScintillaDoc.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') 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.

+

Applications may discover the set of properties used by searching the source code of lexers for lines that contain + GetProperty and a double quoted string and extract the value of the double quoted string as the property name. + The scintilla/src/LexGen.py 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 +
// property <property-name>

+

SCI_GETPROPERTY(const char *key, char *value)
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 -- cgit v1.2.3