Good JavaScript Indentation Tool

Can you suggest any tool for overridden JavaScript files and compressed CSS files?

+6
javascript jquery css converter
source share
7 answers

Hi, I think you mean to decorate it,

+18
source share

I like this CSS reformatting / prefix site:

http://procssor.com/

+6
source share

Now I use Chrome for daily development ... if you are in the same boat, the PrettyPrint extension is great for this.

You get highlight highlight and syntax to make it much easier to read. Even better, simply by clicking on the link to the mini file from the view source (or by going directly ... in any way that you focus on it), you will get there, no copy / paste steps. Pretty print preview

+3
source share

Closure Compiler will do this for JS. Set "Optimization" to "Space Only" and check the "Pretty print" box. For CSS, the Firebug CSS tab (without any additional add-ons) seems to work quite well, although preserving beautiful code by copying -and-pasting is a little tricky, but possible (you have to use the keyboard and then re-paste the copied lines into a text editor )

+3
source share

Perhaps this may be too much for this task, many IDEs can reformat miniature JavaScript. For example. IntelliJ IDEA where you can use the Code → Reformat Code menu item ... A free version of IntelliJ will suffice. I think Jetbrains is easier than an IDE to develop HTML / JavaScript, Webstorm can do this, as well as other IDEs like Eclipse and NetBeans

+2
source share

If you use Firefox with Firebug, you can install Yslow: it has good tools like "All JS Beautified" and "All CSS Beautified". You will like it =)

+2
source share
+1
source share

All Articles