Re: wxStyledTextCtrl and sql syntax highlightning

2006-06-21 Thread pierre_py
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_c

Re: wxStyledTextCtrl and sql syntax highlightning

2006-06-21 Thread jean-michel bain-cornu
> 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.SetP

wxStyledTextCtrl and sql syntax highlightning

2006-06-21 Thread pierre_py
Hi. I use wxPy version 2.4.2 for Python 2.3. Now I wanted to use the wxStyledTextCtrl for viewing (editing) of sql code. I have the following: self.__m_styled_text_ctrl = wxPython.stc.wxStyledTextCtrl( self, wx.NewId(), style=wxPython.wx.wxNO_FULL_REPAINT_ON_RESIZE