Does anyone know/have a script or function to add indentation to javascript code? I've been searching for this on Google for quite some time now, andHow can I can't seem to find anything.automatically format JavaScript properly?
Basically what I need to do is make this, forAs an example, this:
(function(){(function(){alert('whatever')})()})()
BecomeShould become:
(function(){
(function(){
alert('whatever')
})()
})()
Thanks in advance :)