In process of attempting to build a CSS editor. I was wondering if anyone could lead me to a way to highlight CSS for a rich GUI control in wxPython specifically?

Also I would like to parse,serialize, validate and write CSS to file. I did find cssutils but was getting errors when parsing. They did not seem to be volitile errors but no sure if I should explore it futher of find something else... if there is something else.

Any Help would be greatly Appreciated -- Andrew

If richedit is your wx.TextCtrl object set to
style=wx.TE_MULTILINE|wx.TE_RICH2 then use

richedit.SetStyle(start, end, wx.TextAttr("red", "yellow"))

where start/end is the index range in your string you want to highlight in the given fg/bg colors.