[Eric] Adding to the list of python keywords

detlev detlev at die-offenbachs.de
Sun Feb 28 17:30:51 GMT 2010


On Freitag, 26. Februar 2010, detlev wrote:
> On Freitag, 26. Februar 2010, Phil Thompson wrote:
> > On Fri, 26 Feb 2010 18:28:24 +0100, detlev <detlev at die-offenbachs.de>
> >
> > wrote:
> > > On Freitag, 26. Februar 2010, Sourish Basu wrote:
> > >> Hi All,
> > >>
> > >>     Is it possible to the list of python keywords that Eric4
> > >> highlights (such as 'def', 'if', 'else', and so on)? For example, I
> > >> would like to get Eric4 to color 'self', 'True' and 'False' with the
> > >> same color as, for example, 'def' or 'None'. Is it possible to do
> > >> that?
> > >>
> > >>     I used to be able to do that when I used Komodo Edit, but then I
> > >> quite using Komodo Edit for other reasons.
> > >
> > > As far as I know that is not supported by QScintilla.
> >
> > Just sub-class QsciLexerPython and reimplement keywords().
> >
> > Phil
> 
> Thanks for the hint. I'll add it to the wish list.

This feature has been implemented and will be part of the next eric5 snapshot.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list