We are used to some great pieces of software like Gedit, Notepad++, Brackets or Atom for writing our code. Among their multiple advantages, the syntax highlighting is one of their most useful, as it help us to quickly identify the blocks of our code.
However, sometimes we need to use the terminal, for example, for editing a file that is being through ssh.
Thanks to scopatz we can easily modify our nano to show our code in colours and highlight the syntax:
git clone email@example.com:scopatz/nanorc.git ~/.nano cat ~/.nano/nanorc >> ~/.nanorc
Take a look to his nanorc‘s github for more details.
If you are using a version of nano under 2.1.5, your .nanorc should look like this to avoid compatibility problems: