💾 Archived View for rawtext.club › ~sloum › geminilist › 001119.gmi captured on 2020-10-31 at 02:03:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

<-- back to the mailing list

Nano context highlighting for gmi file

Pete D. peteyboy at SDF.ORG

Thu May 28 22:57:01 BST 2020

- - - - - - - - - - - - - - - - - - - 

So, to make it more pleasant to write gmi files in shell, I created a very simple "gemini.nanorc" file for text highlighting gemini files.

I figure I'd just paste the file's contents and instructions here:Just open a new file in nayno (I assume that's what you are using if you are going to use this feature), paste all the text between the two ``` lines below into the file, and save as "gemini.nanorc", either in /usr/local/share/nano (if you are admin), ~/share/nano or whatever is right for your installation.

Then, again, depending on your installation, create or append to your existing /etc/nanorc or ~/.nanorc a line like the following:

include "/etc/nanorc/gemini.nanorc"

Hope it's useful for somebody! Here's the contents:


syntax gemini "\.(gmi|GMI)$"

# linkscolor magenta "^=
>.*$"u

# preformattedcolor yellow  start="^```* ?$" end="^```* ?$"

#headingscolor cyan "^\#+.*$"

#bulletscolor green "^\*+.*$"```--peteyboy at sdf.orgSDF Public Access UNIX System - http://sdf.org