[wxPython-users] volunteers

Stani's Python Editor spe.stani.be at gmail.com
Wed Mar 14 05:39:20 PDT 2007


Hi Kib,
It looks interesting. Right now I am preparing a next release for SPE, 
so I can't help you now. I think you have more chance to get your 
answers on the scintilla mailing list (scintilla-interest at lyra.org), 
where Neil (creator of scintilla) probably can help you better. You 
could have a look at sm/wxp/stc.py in SPE where I do some custom styling 
like:

        self.StartStyling(self.PositionFromLine(lineno-1), 
wx_stc.STC_INDICS_MASK)
        self.SetStyling(offset, wx_stc.STC_INDIC2_MASK)
        self.Colourise(0, -1)

Probably this could be optimised by eg not colourising everything, but 
maybe that is not what you are looking for.
Stani
--
http://pythonide.stani.be

kib wrote:
> Hi wxPythoners,
>
> I'm currently working on a project for adding a sort of snippets engine (See
> TextMate on Mac, InType or eTextEditor on Windows, and Scribes on Linux) to the
> wxStyledTextCtrl widget.
> I managed to have a basic implementation, but I'm a wxPython beginner and I
> really need help with the stc.
> Here's one little avi file of what's currently done (don't look at the
> statusbar, some part of it give erronous results, i just use it as a little
> debug window):
> h**p://kib2.free.fr/reSTedit/tm.avi
> If some of you are interested in such a project, you can mail me at
> kib2__at__free.fr 
>
> Secondly, I have recently posted a message here to know how to deal with the
> highlighting of one's own language of the wxStyledTextCtrl widget.
> Robin told me to set the lexer to STC_LEX_CONTAINER, and then respond to the
> EVT_STC_STYLENEEDED , but I already know that 
> as it was explained on the YellowBrain site (the only reference I've found till
> now, but the widget has evolved since and nothing has been updated yet).
> I know Robin has a lot to do, but can someone provide me a very simple example
> on how to highlight:
> - digits  (associated with the regular expression '\d' )
> - email adresses (associated with the regular expression
> '[0-9a-z\.\-]+[@][0-9a-z\.\-]+' )
> I choose these two because there could be some collision : adresses may countain
> digits.
>
> Thanks for all, sorry for my English, cheers:
> Kib.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>   





More information about the wxpython-users mailing list