How to color the Python syntax in nano
Nano is perfectly fine as a simple code editor. It has wonderful syntax highlighting. You will probably want an up-to-date version of nano.


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"