[wxPython-users] wxStyledTextCtrl_2 woes
Josiah Carlson
jcarlson at uci.edu
Sun Jul 9 22:13:16 PDT 2006
David Brown <david at atomicbinary.com> wrote:
> Robin Dunn wrote:
> > You are not setting any styles, and so all styles used by the lexer
> > are going to be drawn exactly the same way. So it's not a matter of
> > things not getting highlighted, but that the highlighted things are
> > indistinguishable from everything else.
> >
> I removed the keyword stuff. I had no idea what that was for, so I just
> put it there just in case it was required. How do I find out what style
> types are used in the ASM lexer? Are they the same as the Python lexer?
> I'm pretty new to Python, so please forgive my dumb questions. :P
Generally speaking, if you are using a lexer XXX, setting the lexer with
the name stc.STC_LEX_XXX, then the styles for that language is listed
under stc.STC_XXX_* . You can discover all such names if you do...
import wx.stc
for i in dir(wx.stc):
if i.startswith('STC_ASM_'):
print i
- Josiah
More information about the wxpython-users
mailing list