From 289c2bba38b3c889a4c3e6d6ecb0c14c61f8e449 Mon Sep 17 00:00:00 2001 From: sejo Date: Thu, 25 Nov 2021 17:32:44 -0600 Subject: [PATCH] gmo syntax highlight --- README.md | 2 ++ gmo.nanorc | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gmo.nanorc diff --git a/README.md b/README.md index 8ff156d..70b7d71 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/gmo.nanorc b/gmo.nanorc new file mode 100644 index 0000000..c24e778 --- /dev/null +++ b/gmo.nanorc @@ -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 "^&.+$"