Skip to content

More syntax highlighters for Nano editor

License

Notifications You must be signed in to change notification settings

rickbot-dot/nano-highlight

Repository files navigation

nano-highlight

More syntax highlighters for Nano editor.

Setup

To install or update nano-highlight use this command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/TylerMS887/nano-highlight/HEAD/full-install.sh)"

Or to do a basic install (e.g. highlighters must be installed manually):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/TylerMS887/nano-highlight/HEAD/install.sh)"

Highlighters

Dart

This highlighter adds Dart support to nano's highlighter.

Dart highlighter

If you done a basic install, paste these commands into your shell to enable Dart highlighting:

export PREVIOUS_DIR="$(pwd)"
cd ~/nano-highlight
wget -q https://raw.githubusercontent.com/TylerMS887/nano-highlight/main/.dart.nanorc
cd $PREVIOUS_DIR

Add new highlighters

To the nano-highlight repo

Create a new issue.

Highlighters must not be for esoteric programming languages. (Who needs those?)

To your setup

Run the following command: nano ~/nano-highlight/.lingua-name.nanorc

Note for confused users: Replace lingua-name with the name of the language.