Ben Kaplan wrote:
Well, I tried it, but it doesn't work quite right. I'm using a lexer to color the rest of the text. The lexer styles are applied after I set the styling on the error message. The line flashes red, then goes to the lexer's style. Is there any way to have the lexer ignore specific areas?
The Scintilla docs hint that it is possible to do custom styling in addition to the styling that a lexer does, but it doesn't give any details that I can see. You might try doing your custom styling in a delayed fashion (via wx.CallAfter or even EVT_IDLE) so it will be done after the lexer has processed that part of the text, and see if that takes care of it for you.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!