Search code examples
pythonsyntaxwxpythonhighlightingpygments

Pygments in wxPython?


Is it at all possible to use Pygments inside of wxPython to provide syntax highlighting?


Solution

  • Positive. While pygments is originally aimed at CSS output, you can define a pygments formatter to define styles for a wx.StyledTextCtrl for example. I happen to have done that just recently:

    http://relet.net/frog/archives/170