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...

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...

Add Twig syntax highlight in Sublime Text 2
Select the "Preferences->Browse Packages..." menu to open the folder that contains Sublime Text 2 packages. Download...

Open a file in Sublime Text 2 from command line
The idea is to create a symbolic link to the Sublime Text's executable and put in the system's path (execute...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.