Pimping OS X' default nano, syntax highlighting and more

Recently I was editing a php file on a Linux server and I noticed it had some basic highlighting. The reason why I noticed is because on Mac OS X everything is always in the default terminal color without highlighting.

Turns out you can enable it for OS X as well with little effort!

Some examples, to convince you, if you haven't been already

A json file with default OS X nano:

c9e3486f-b708-45f5-a858-4e641e8893a2.jpg

With the updated nano:

ee4784c7-e13b-4e54-8016-544d0a563d25.jpg
4523303c-6b29-441c-8f0d-596353d1a430.jpg

Enough showing off, how do I get it?

Assuming you know what homebrew is and have it installed & set up correctly; it's really just a matter of running the following 2 commands, not much else to it!

brew install nano
echo "include /usr/local/share/nano/*.nanorc" > ~/.nanorc

Enjoy 🌈!