From d58c89feb5ffb0792b80b39ccd2fd808c02fe8ee Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 4 Nov 2003 11:31:41 +0000 Subject: SCI_SETCHARSDEFAULT and more clarification of SCI_SETWORDCHARS and SCI_SETWHITESPACECHARS. --- doc/ScintillaDoc.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 221d141db..86be00fb8 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -2217,8 +2217,9 @@ struct TextToFind { SCI_GETCODEPAGE
SCI_SETWORDCHARS(<unused>, const char *chars)
- SCI_SETWHITESPACECHARS(<unused>, const char + SCI_SETWHITESPACECHARS(<unused>, const char *chars)
+ SCI_SETCHARSDEFAULT
SCI_GRABFOCUS
SCI_SETFOCUS(bool focus)
SCI_GETFOCUS
@@ -2305,17 +2306,24 @@ struct TextToFind {

SCI_SETWORDCHARS(<unused>, const char *chars)
Scintilla has several functions that operate on words, which are defined to be contiguous sequences of characters from a particular set of characters. This message defines which - characters are members of that set. If chars is null then the default set, - alphanumeric and '_', is used. For example, if you don't allow '_' in your set of characters + characters are members of that set. The character sets are set to default values before processing this + function. + For example, if you don't allow '_' in your set of characters use:
SCI_SETWORDCHARS(0, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");

SCI_SETWHITESPACECHARS(<unused>, const char *chars)
Similar to SCI_SETWORDCHARS, this message allows the user to define which chars Scintilla considers - as whitespace. If chars is null then the default set, space and all char codes less than - 0x20, are used. Setting the whitespace chars allows the user to fine-tune Scintilla's behaviour doing + as whitespace. Setting the whitespace chars allows the user to fine-tune Scintilla's behaviour doing such things as moving the cursor to the start or end of a word; for example, by defining punctuation chars as whitespace, they will be skipped over when the user presses ctrl+left or ctrl+right. + This function should be called after SCI_SETWORDCHARS as it will + reset the whitespace characters to the default set.

+

SCI_SETCHARSDEFAULT
+ Use the default sets of word and whitespace characters. This sets whitespace to space, tab and other + characters with codes less than 0x20, with word characters set to alphanumeric and '_'. +

+

SCI_GRABFOCUS
SCI_SETFOCUS(bool focus)
-- cgit v1.2.3