gmo syntax highlight
This commit is contained in:
parent
17356ada68
commit
289c2bba38
|
@ -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
|
`&` 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
|
# wikilinks
|
||||||
|
|
||||||
## inline wikilinks
|
## inline wikilinks
|
||||||
|
|
|
@ -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 "^&.+$"
|
Loading…
Reference in New Issue