[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Adding keywords to QextScintillaLexerPython (eric3)
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2004-04-15 8:24:10
Message-ID: 200404150924.11588.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Thursday 15 April 2004 8:52 am, Remy C. Cool wrote:
> Hello,
>
> I would like to ad some keywords to the Python lexer used in eric3.
>
> According to the scintilla documentation there's a SCI_SETKEYWORDS
> method to accomplish this. wxWidgets (was wxPython) also defines a
> SetKeywords method for the Scintilla control, but I dont' know how to
> access this method from pyQT/eric3.
>
> Any info or examples?
The easiest way is probably to sub-class QextScintillaLexerPython and
reimplement the keywords() method.
Obviously you then need to change eric to use your new lexer.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic