Skip to content

Instantly share code, notes, and snippets.

@MohamedElashri
Last active May 26, 2021 10:05
Show Gist options
  • Save MohamedElashri/b5a15a3f8c358f3c4e6690170f34331d to your computer and use it in GitHub Desktop.
Save MohamedElashri/b5a15a3f8c358f3c4e6690170f34331d to your computer and use it in GitHub Desktop.
nano editor customization #syntax-highlighting
  1. Install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/

  2. Install nano from homebrew brew install nano

  3. Update your nanorc file with the contents of the nanorc file below nano ~/.nanorc

  4. Add custom syntax files to nanorc include /opt/homebrew/Cellar/nano/5.7/share/nano/*.nanorc

  5. To add line numbers we just insert set linenumbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment