Use Sublime Text 2 to beautify HTML, CSS and JavaScript

First of all you have to install Package Control in Sublime Text 2 as I explained before. Then install nodejs in your system. In Ubuntu you can do that running this command:

sudo apt-get install nodejs-legacy

In Sublime Text 2 go to Preferences->Package Control, then “Install Package” and finally select “Sublime-HTMLPrettify”. Once installed you can execute the beautify process selecting Tools->Command Palette… and then HTMLPrettify. You will be able to go from this:

To this:

You might also like

Easely add plugins to Sublime Text 2
Download Sublime Text 2 (at this moment the lastest build is 2181) and install it: Mac Windows 32...
Clean caches with a drush command in Drupal 7
/Users/user/Applications/drush/drush -y -r /Users/user/Sites/drupal -l http://localhost cache-clear all You...
Symfony2 routing: Allow dots in URL
I have one route in my app that must have a text and a dot followed by a format. For example: As...
How to add and delete package signing keys of apt in Ubuntu
To install a package signing key you have to use the apt-key add command. For example if you want to...
Leave a comment ?


Leave a Comment