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...
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...
Solve “mongodb cannot be built while v8 is active” in MacPorts
While updating all the ports of macports I got this error: ---> Configuring mongodb Error: mongodb...
Leave a comment ?


Leave a Comment