Files: 675bdb1cd10ef2333584541291358147870e8546 / README.gmi
1249 bytesRaw
1 | # text/gemini language spec for GtkSourceView |
2 | |
3 | Syntax highlighting of text/gemini for gedit, GNOME Builder, and other apps that use GtkSourceView. |
4 | |
5 | ## Background |
6 | |
7 | text/gemini is a hypertext format, the native text format of the Gemini internet protocol. |
8 | => https://gemini.circumlunar.space/ |
9 | |
10 | 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. |
11 | |
12 | The syntax described here follows Project Gemini Speculative specification v0.14.1, June 15th 2020. |
13 | => https://gemini.circumlunar.space/docs/specification.html |
14 | |
15 | ## Install it |
16 | |
17 | Put the gemini.lang file in the right folder. |
18 | |
19 | For flatpak apps, e.g. gedit and GNOME Builder: |
20 | * ~/.var/app/org.gnome.gedit/data/gtksourceview-4/language-specs/ |
21 | * ~/.var/app/org.gnome.Builder/data/gtksourceview-4/language-specs/ |
22 | |
23 | For non-flatpak apps that use GtkSourceView: |
24 | * ~/.local/share/gtksourceview-4/language-specs/ |
25 | * ~/.local/share/gtksourceview-3.0/language-specs/ |
26 | * ~/.local/share/gtksourceview-2.0/language-specs/ |
27 | |
28 | ## Use it |
29 | |
30 | Open a file whose filename ends in ".gemini" or ".gmi". |
31 | |
32 | You can change the filenames this spec targets by editing the spec — it's a pretty readable format. |
33 | |
34 |
Built with git-ssb-web