API reference
You can browse the GtkSourceView API reference online on library.gnome.org where you will also find the documentation for many other libraries used throughout the GNOME platform.
- Browse API reference for the stable release
- Browse API reference for the unstable release
Tutorials
We have not an official tutorial, but the source of test-widget program is a good starting point for learning how to use the GtkSourceView API.
Here you can find a list of unofficial tutorials:
- Simple syntax highlighting window example.
- Using GtkSourceview to build a PHP editor with syntax highlighting.
- How to use the GtkSourcePrintCompositor API.
Language definition files
A language definition file is an XML document that describes how to color source code.
You can learn how to write language files by reading the official tutorial on how to write a new language definition file and the reference to the language definition file format.
Older documentation
Although we recommend to use GtkSourceView 2.x, we keep the GtkSourceView 1.x Documentation around for those who need it.