git ssb

0+

Grey the earthling / gemini.lang



Branch:
Grey Nicholson committed Claim adherance to spec v0.16.1 and compatibility with GtkSourceView 5Latest: c1afb3a on 5/11/2022, 6:40:15 PM
📄README.gmi
📄UNLICENSE
📄gemini.lang
README.gmi
1# text/gemini language spec for GtkSourceView
2
3Syntax highlighting of text/gemini for gedit, GNOME Builder, and other apps that use GtkSourceView.
4
5## Background
6
7text/gemini is a hypertext format, the native text format of the Gemini internet protocol.
8=> https://gemini.circumlunar.space/
9
10This language spec describes the text/gemini syntax, in a format understood by GtkSourceView (versions 2, 3, 4 and 5), so that apps using GtkSourceView can highlight text/gemini files.
11
12The syntax described here follows Project Gemini Speculative specification v0.16.1, January 30th 2022.
13=> https://gemini.circumlunar.space/docs/specification.html
14
15## Install it
16
17Put the gemini.lang file in the right folder.
18
19For flatpak apps, e.g. GNOME Builder, GNOME Text Editor:
20* ~/.var/app/org.gnome.Builder/data/gtksourceview-4/language-specs/
21* ~/.var/app/org.gnome.TextEditor/data/gtksourceview-5/language-specs/
22
23For non-flatpak apps that use GtkSourceView:
24* ~/.local/share/gtksourceview-5/language-specs/
25* ~/.local/share/gtksourceview-4/language-specs/
26* ~/.local/share/gtksourceview-3.0/language-specs/
27* ~/.local/share/gtksourceview-2.0/language-specs/
28
29## Use it
30
31Open a file whose filename ends in ".gemini" or ".gmi".
32
33You can change the filenames this spec targets by editing the spec — it's a pretty readable format.
34
35

Built with git-ssb-web