gmo syntax highlight

This commit is contained in:
sejo 2021-11-25 17:32:44 -06:00
parent 17356ada68
commit 289c2bba38
2 changed files with 24 additions and 0 deletions

View File

@ -31,6 +31,8 @@ the same format as gmi (gemtext), but with the following line types:
`&` add this line to the gmi file but not to the html file
the `gmo.nanorc` file provides syntax highlighting for the format in nano :)
# wikilinks
## inline wikilinks

22
gmo.nanorc Normal file
View File

@ -0,0 +1,22 @@
# include this file in your ~/.nanorc:
# include "path/to/gmo.nanorc"
syntax "gmo" "\.gm[oi]$"
# gemtext
# headers
color cyan "^#{1,3}.+$"
# links
color green "^=>.+$"
# pre
color blue start="```" end="```"
# list
color bold,black "^\*"
# gmo
# wikilinks
color yellow "\{(\w| )+\}"
# htmlonly
color magenta "^\+.+$"
# gemtextonly
color lightred "^&.+$"