Thanks! StyleAt() works fine. I was looking for high level function, but it
is very easy to implement what I need just by checking the style of the
characters. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Ehresman
Sent: Monday, October 02, 2006 5:54 PM
To: Discussion of the Scintilla editing component
Subject: Re: [scintilla] How to find keywords?

Steve Topov wrote:
> The question still remains unanswered. After digging into Scintilla code I
> found that editor uses SetState function to set states for different
words.
> So how can I find the word with the state lets say SCE_SQL_WORD?

I think you'd need to use StyleAt() on the document object to examine 
the state of each character and then write code to determine the extent 
of a word.  AFAIK, there is no higher level function to do this in the 
scintilla source base.  Are you really looking for the first word with a 
given state or do you think this will be an easy way to do something else?

Cheers,

John
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest



_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to