[Eric] Adding to the list of python keywords

Phil Thompson phil at riverbankcomputing.com
Fri Feb 26 17:38:05 GMT 2010


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


More information about the Eric mailing list