From 909cd70d36e31e27a53ddc49dacebfd5c13ffc9b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 8 Oct 2008 10:05:11 +0000 Subject: Documented property naming convention. --- doc/ScintillaDoc.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 90d337529..c5dd47371 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -4698,6 +4698,10 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ interpreted as integers. Search the lexer sources for GetPropertyInt to see how properties are used.

+

There is a convention for naming properties used by lexers so that the set of properties can be found by scripts. + 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.

+

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