Good day,
I've got scintilla embedded in an application via the wxStyledTextCtrl
within wxPython. Scintilla has its lexer set, but I would like to
manually style certain portions of the document. More specifically, I
am using scintilla as the input/output of an interactive shell, and I
would like to "style" the output of the shell using a particular
foreground color. I have created a style via the STYLESET* equivalent
methods in wxPython, but I get incorrect results...
When I do something like the following:
lp = <some non-ending position>
ld = len(data)
es = self.GetEndStyled()
self.InsertText(lp, data)
self.StartStyling(lp, 31)
self.SetStyling(ld, 14) #where 14 is the new style
self.StartStyling(es+ld, 31)
All of the text after the newly styled text gets styled the same.
When I use AddStyledText(), the styling of the added styled text is lost.
Is what I desire possible, and if so, could someone give me an idea how?
Thank you,
- Josiah
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest