[wxPython-dev] peppy and editra

Rob McMullen rob.mcmullen at gmail.com
Tue Nov 20 11:18:53 PST 2007


On Nov 20, 2007 10:53 AM, Chris Mellon <arkanes at gmail.com> wrote:
> One of the most boring, frustrating, boilerplate bits of code about
> using scite is setting up lexer styling. I've thought for a while that
> it'd be nice if we had a standardized format for setting these styles,
> perhaps even with some stock dialogs, and a module in wx that had
> working and reasonable pre-defined styles for at least the most common
> lexers.

Talking about not reinventing the wheel:  Editra's dialog and styling
system are the place to start if one were serious about making a
generic wx control to perform stc lexer styling.  As it stands
currently it's tied into the Editra framework in a number of places so
it would take some work to make it stand-alone.

To adapt it to peppy I wanted to avoid changing anything within the
borrowed Editra because I wanted to be able to drop in updates as
Editra changes.  I wasn't able to meet that goal entirely, so have
both a set of adapter classes and some mods to the ed_style.py file.
But, basically I succeeded in tying it into the peppy code rather than
generalizing it. :)

See:

http://trac.flipturn.org/browser/trunk/peppy/editra

if you were interested in the work I did adapting the editra styling
system to another application.

Rob




More information about the wxpython-dev mailing list