Part I. Introduction

GtkSourceView is a portable C library that extends the standard GTK+ framework for multiline text editing with support for configurable syntax highlighting, unlimited undo/redo, search and replace, a completion framework, printing and other features typical of a source code editor.

See the GtkSourceView website.

GtkSourceView 3 depends on GTK+ 3.

pkg-config name

For GtkSourceView 3, the pkg-config name is: gtksourceview-3.0

To compile a program that uses GtkSourceView 3, you can for example use the following command:

$ gcc hello.c `pkg-config --cflags --libs gtksourceview-3.0` -o hello