I am working on the StyledTextCtrl.
and I want to highlight only the word not a single character.
below code is for single character, by the way, Is there other way to
get word from start_pos to end_pos ?
I am working on the StyledTextCtrl.
and I want to highlight only the word not a single character.
below code is for single character, by the way, Is there other way to
get word from start_pos to end_pos ?
self.vowels = [ord(char) for char in "good" + "bad"]
Its make a list of ordinal values for the characters 'goodbad' and the
style needed method is only checking a single character at a time so
it will only highlight the characters in that list.
If you want to highlight the words you need to look a the whole run of
characters in the word as a whole and apply the style to it.
Suggest reading the documentation at scintilla.org for some more
samples of how to work with this interface.
Cody
···
On Mon, Aug 1, 2011 at 8:22 PM, Wonjun, Choi <wonjunchoi001@gmail.com> wrote: