mattn / go-gtk

Go binding for GTK
http://mattn.github.com/go-gtk
BSD 3-Clause "New" or "Revised" License
2.1k stars 248 forks source link

add language to gtk source view? #340

Open rawsh opened 6 years ago

rawsh commented 6 years ago

I'm trying to add markdown via these two lang spec files https://github.com/jpfleury/gedit-markdown/tree/master/language-specs. How can I input them?

mattn commented 6 years ago

Please see $PREFIX/share/gtksourceview-2.0/*

rawsh commented 6 years ago

@mattn yes, but can I bundle one in my app?

mattn commented 6 years ago

See https://github.com/mattn/go-gtk/blob/master/example/sourceview/sourceview.go#L18