StyledTextControl default styles

Does the STC define default fonts/colours etc for the
builtin lexers? From my code below, I just get a window
that has no bold, no different fonts, or colours. I had
assumed it would define default ones that looked somewhat
pretty.

class ViewSourceFrame(wx.Frame):
    def __init__(self, parent, text, id=-1):
        wx.Frame.__init__(self, parent, id, "HTML Source")
        stc=wx.stc.StyledTextCtrl(self, -1)
        stc.SetLexer(wx.stc.STC_LEX_HTML)
        stc.SetText(text)
        stc.Colourise(0,-1)

Roger

Roger Binns wrote:

Does the STC define default fonts/colours etc for the
builtin lexers? From my code below, I just get a window
that has no bold, no different fonts, or colours. I had
assumed it would define default ones that looked somewhat
pretty.

Nope. The lexers define the style numbers they use for the various lexical states, but the styles themselves are up to the applicaiton.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!