A few days ago I was telling you about using syntax highlighting in Nano (Linux command line text editor). Unfortunately Nano doesn't come with syntax highlighting for some of the most used languages such as CSS, PHP and XML by default.
But thanks to Sckyzo, you can have syntax highlighting in Nano for those too. The package which will be downloaded using the command below will download syntax highlighting plugins for: PHP, CSS, XML, xorg.conf and Generic .conf. To install them all, simply paste this in a terminal:
But thanks to Sckyzo, you can have syntax highlighting in Nano for those too. The package which will be downloaded using the command below will download syntax highlighting plugins for: PHP, CSS, XML, xorg.conf and Generic .conf. To install them all, simply paste this in a terminal:
wget http://blog.sckyzo.com/wp-content/nano-supplement.tar
tar -xvf nano-supplement.tar
sudo mv *nanorc /usr/share/nano
sudo rm /usr/share/nano/sourceslist.nanorc
The last command removes sourceslist.nanorc because I got 3 errors when trying to start nano because of it.
And finally, to enable syntax highlighting for these programming languages, open the nanorc file with the following command:
sudo nano /etc/nanorc
And paste this at the end of the file:
## Config Files (.ini)
include "/usr/share/nano/ini.nanorc"
## Xorg.conf
include "/usr/share/nano/xorg.nanorc"
## CSS
include "/usr/share/nano/css.nanorc"
## XML
include "/usr/share/nano/xml.nanorc"
## Generic .conf
include "/usr/share/nano/conf.nanorc"
## PHP
include "/usr/share/nano/php.nanorc"
Once again thanks to Sckyzo!
Tidak ada komentar:
Posting Komentar