wxStyledTextCtrl and sql syntax highlightning
pierre_py
pslana at gmail.com
Wed Jun 21 06:49:15 EDT 2006
Hi.
Thanks it works now .. i must reset the default styles with
StyleClearAll and then set the styles apropriate again.
Is there a way that the keyword list isn't case sensitive, as sql
isn't.
reg,
Pierre
jean-michel bain-cornu wrote:
> > I have the following:
> > self.__m_styled_text_ctrl = wxPython.stc.wxStyledTextCtrl(
> > self, wx.NewId(),
> > style=wxPython.wx.wxNO_FULL_REPAINT_ON_RESIZE)
> > self.__m_styled_text_ctrl.SetLexer(wxPython.stc.wxSTC_LEX_SQL)
> > self.__m_styled_text_ctrl.SetProperty("fold", "1")
> > self.__m_styled_text_ctrl.SetMargins(0,0)
> > self.__m_styled_text_ctrl.SetKeyWords(0, SQL_KEYWORDS)
> Hi Pierre,
> I'd like to do some tests with your stuff, but I'd appreciate to have a
> working sample. Would you like to post it ?
> Regards,
> jm
More information about the Python-list
mailing list