STC coloring

Thanks, but I was talking about printing the text as red, not changing the background color.

···

----- Original Message ----
From: Stef Mientki s.mientki@ru.nl
To: wxPython-users@lists.wxwidgets.org
Sent: Tuesday, January 29, 2008 12:36:11 PM
Subject: Re: [wxPython-users] STC coloring

I think the easiest way is to use markers (I’m sure it’s necessary to
use the highest marker number):

Code_Editor.MarkerDefine ( 31, stc.STC_MARK_BACKGROUND, "#00FF00",

#00FF00”)

Code_Editor.MarkerAdd ( line_nr-1, 31 )

and if you don’t need it any more, just delete the marker:

Code_Editor.MarkerDeleteAll ( 31 )

cheers,

Stef

Ben Kaplan wrote:

I’m trying to get an effect similar to the one in this
screenshot of Dr. Scheme, where the error message is printed in red and
the rest of the text control is styled as usual. I have the rest of it
styled correctly, but I can’t figure out how to write a message using a
style different from the lexer. Can anyone help me with this?


Never miss a thing. Make Yahoo your homepage.