File: overview.md

package info (click to toggle)
gtksourceview5 5.18.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,780 kB
  • sloc: ansic: 71,161; xml: 1,493; javascript: 866; perl: 216; sh: 144; java: 49; php: 48; yacc: 45; ruby: 38; ml: 36; python: 33; sql: 30; makefile: 23; cobol: 20; objc: 19; lisp: 19; fortran: 14; awk: 9; cpp: 8
file content (32 lines) | stat: -rw-r--r-- 1,076 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Title: Overview

# Overview

GtkSourceView is a [GNOME](https://www.gnome.org/) library that extends
GtkTextView, the standard GTK widget for multiline text editing. GtkSourceView
adds support for syntax highlighting, file loading and saving, search and
replace, code completion, snippets, Vim emulation, printing, displaying line
numbers, and other features typical of a source code editor.

See the [GtkSourceView website](https://wiki.gnome.org/Projects/GtkSourceView).

GtkSourceView 5 depends on GTK 4.

## pkg-config name

For GtkSourceView 5, the pkg-config name is: `gtksourceview-5`

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

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

## Library Initialization

Your application *MUST* initialize GtkSourceView from `main()`.
Call `gtk_source_init()` or its variant within your programming language.
A great place to do this is right after calling `gtk_init()`.

In language bindings, this function is often named similar to `GtkSource.init()`.