Syntax highlighting for the mermaid
language in the nano
code editor.
Run:
git clone https://github.com/Yash-Singh1/nano-mermaid.git
cd nano-mermaid/
Then run:
sudo cp mermaid.nanorc /usr/share/nano/
sudo -i
mkdir /usr/local/share/nano/
echo 'include "/usr/share/nano/*.nanorc"' >> /etc/nanorc
cp mermaid.nanorc /usr/local/share/nano/
Note: Remember to run as administrator
cp mermaid.nanorc /usr/share/nano/
Creating and editing a .mermaid
file should syntax highlight.