Nano: how to obtain syntax highlighting?
Install the latest version of nano with homebrew:


Install homebrew: https://brew.sh/
Install nano: brew install nano
Add this line to ~/.nanorc. That directory has all the syntax highlighting definition files.

include "/usr/local/share/nano/*.nanorc"