From 4f8c51ef2e37f152640afa8565716435b256172c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 30 Aug 2005 11:07:33 +0000 Subject: Added StyleBitsNeeded property and implemented to return 5 for all lexers except HTML, XML, ... (7) and Ruby (6). --- doc/ScintillaDoc.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index fc1871e65..218e99d89 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -452,7 +452,9 @@ SCI_GETSTYLEBITS
This pair of routines sets and reads back the number of bits in each cell to use for styling, to a maximum of 7 style bits. The remaining bits can be used as indicators. The standard - setting is SCI_SETSTYLEBITS(5).

+ setting is SCI_SETSTYLEBITS(5). + The number of styling bits needed by the current lexer can be found with + SCI_GETSTYLEBITSNEEDED.

TextRange and CharacterRange
These structures are defined to be exactly the same shape as the Win32 TEXTRANGE @@ -4293,6 +4295,8 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_GETPROPERTYINT(const char *key, int default)
SCI_SETKEYWORDS(int keyWordSet, const char *keyWordList)
+ SCI_GETSTYLEBITSNEEDED +

SCI_SETLEXER(int lexer)
@@ -4402,6 +4406,11 @@ 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_GETSTYLEBITSNEEDED
+ Retrieve the number of bits the current lexer needs for styling. This should normally be the argument + to SCI_SETSTYLEBITS. +

+

Notifications

Notifications are sent (fired) from the Scintilla control to its container when an event has -- cgit v1.2.3