https://github.com/linuxerwang/sourceview3
Go binding for GtkSourceview 3 in gotk3.
https://github.com/linuxerwang/sourceview3
Last synced: 6 months ago
JSON representation
Go binding for GtkSourceview 3 in gotk3.
- Host: GitHub
- URL: https://github.com/linuxerwang/sourceview3
- Owner: linuxerwang
- License: bsd-3-clause
- Created: 2020-05-03T19:48:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T17:47:01.000Z (over 3 years ago)
- Last Synced: 2025-04-02T00:35:02.933Z (about 1 year ago)
- Language: Go
- Size: 16.6 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sourceview3
Go binding for GtkSourceview 3 on top of gotk3 (https://github.com/gotk3/gotk3).
## Install
It's tested on Ubuntu 18.04 and 20.04. First, install the libgtksourceview
dev package:
```bash
$ sudo apt install libgtksourceview-3.0-dev
```
Then go get the sourceview3 binding library:
```bash
$ go get github.com/linuxerwang/sourceview3
```
## Demo
A very simple demo:
```bash
$ go install github.com/linuxerwang/sourceview3/sourceview3-demo
$ $GOPATH/bin/sourceview3-demo
```
At present most of the GtkSourceBuffer functions do not have bindings, but with
glade and GtkBuilder it's useful enough. Read the demo code to see how to use
it.