[QScintilla] StartStyling, SetStyling...

Phil Thompson phil at riverbankcomputing.com
Wed Oct 15 18:58:19 BST 2008


On Wed, 15 Oct 2008 20:42:37 +0300, "Ville M. Vainio" <vivainio at gmail.com>
wrote:
> Hello,
> 
> (background: I'm helping with pyqt port of Leo)
> 
> I'm interested in doing a pyqt4 port of IPython (to facilitate using
> the leo-ipython bridge without terminal). There is an existing wx
> implementation of console widget, which basically translates ansi
> color codes to colors on the screen, and it uses StartStyling,
> SetStyling etc. to color the text. How do I do that in QSciScintilla?

If you want to style Python then just create a QsciLexerPython instance and
set it as the current lexer.

Phil


More information about the QScintilla mailing list