Hi,
I’m wondering if it’s possible to write a Lexer for the StyledTextControl (STC) in Python?
I fear that not, but if it would be possible, that would be rather cool
Regards,
–Tim
Hi,
I’m wondering if it’s possible to write a Lexer for the StyledTextControl (STC) in Python?
I fear that not, but if it would be possible, that would be rather cool
Regards,
–Tim
Hello,
Hi,
I'm wondering if it's possible to write a Lexer for the StyledTextControl (STC) in Python?
I fear that not, but if it would be possible, that would be rather cool
Yes it is possible you can write what is called a container lexer. There is some rough documentation about it and how to do it on scintilla.org.
Basically it goes as follows:
1) Set lexer to STC_LEX_CONTAINER
2) Bind handler to EVT_STC_STYLENEEDED
3) In handler do whats needed to style text
Cody
On Aug 19, 2008, at 6:22 AM, Tim van der Leeuw wrote: