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:
0 Comments.