What is GtkSourceView?
GtkSourceView is a library that extends the standard GTK+ text widget with syntax highlighting and other features typical of a source code editor.
GtkSourceView is part of the GNOME Desktop Environment and it is currently being used by gedit, MonoDevelop, Anjuta and several other projects.
Features
GtkSourceView provides syntax highlighing for all the most popular
programming languages, inlcuding C, C++, Java, XML, Python, Ruby and many
others. Support for new languages can be easily added by creating a
Language Definition file.
The colors and styles used to highlight the syntax can be themed
specifying a Style Scheme file.
GtkSourceView supports unlimited undo/redo, caseless search and allows easy integration with the GTK+ printing system to easily print a text document.
Language Bindings
While the GtkSourceView library is written in C, language bindings allow to easily use it from other programming languages