Introduction to libgedit-gtksourceview

The libgedit-gtksourceview package provides a library that extends GtkTextView. This library adds support for syntax highlighting, undo/redo, file loading and saving, search and replace, a completion system, printing, displaying line numbers, and other features typical of a source code editor.

This package is known to build and work properly using an LFS 12.1 platform.

Package Information

libgedit-gtksourceview Dependencies


GTK+-3.24.41 and libxml2-2.12.5



Installation of libgedit-gtksourceview

Install libgedit-gtksourceview by running the following commands:

mkdir build-libgedit &&
cd    build-libgedit &&

meson setup --prefix=/usr       \
            --buildtype=release \
            -Dgtk_doc=false     \
            .. &&

To test the results, issue: ninja test.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=false: Disables building the API documentation. Remove if you have GTK-Doc-1.33.2 installed and wish to build the API documentation.


Installed Programs: None
Installed Libraries:
Installed Directories: /usr/include/libgedit-gtksourceview-300 and /usr/share/libgedit-gtksourceview-300

Short Descriptions

contains convenience functions for text editing.