[PyKDE] Adding keywords to QextScintillaLexerPython (eric3)
Phil Thompson
phil at riverbankcomputing.co.uk
Sun Apr 18 12:03:01 BST 2004
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
More information about the PyQt
mailing list