Using Pygments with GtkTextView to format the sourcecode

Hi, I need to format the SQL code in my Gtk.TextView, I got Pygments package to do provide format for many languages. But the output of Pygments is inHtml (with CSS), RTF, Latex, Termimal Sequence. Any idea, how I can use it with TextView? Or shall I go with GtkSource?

If you need to show source code and have syntax highlighting, you should use GtkSourceView. It’s been written for that purpose.

Okay. Thanks a lot! I thought GtkSource could make the application heavy.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.