# text/gemini language spec for GtkSourceView Syntax highlighting of text/gemini for gedit, GNOME Builder, and other apps that use GtkSourceView. ## Background text/gemini is a hypertext format, the native text format of the Gemini internet protocol. => https://gemini.circumlunar.space/ This language spec describes the text/gemini syntax, in a format understood by GtkSourceView (versions 2, 3 and 4), so that apps using GtkSourceView can highlight text/gemini files. The syntax described here follows Project Gemini Speculative specification v0.14.1, June 15th 2020. => https://gemini.circumlunar.space/docs/specification.html ## Install it Put the gemini.lang file in the right folder. For flatpak apps, e.g. gedit and GNOME Builder: * ~/.var/app/org.gnome.gedit/data/gtksourceview-4/language-specs/ * ~/.var/app/org.gnome.Builder/data/gtksourceview-4/language-specs/ For non-flatpak apps that use GtkSourceView: * ~/.local/share/gtksourceview-4/language-specs/ * ~/.local/share/gtksourceview-3.0/language-specs/ * ~/.local/share/gtksourceview-2.0/language-specs/ ## Use it Open a file whose filename ends in ".gemini" or ".gmi". You can change the filenames this spec targets by editing the spec — it's a pretty readable format.