Just wondering... does anyone know of any good source-code formatters for
JavaScript. I see plenty that use the dirt-simple eval().tostring trick....
but that doesn't work good/right.
It'd be best if the formatter was a console app, so I could script it to
clean up the code in the tree.
Another important thing would be for it to handle JQuery-isms like:
$("#button").click(function() {
code;
more code;
});
<or>
$("#item").hide().show().toggle()
.moreCode().filter(...)
.insideFilter()
.end()
If it can't support that... I wonder how it could properly stylize that :-/
--
View this message in context:
http://www.nabble.com/JS-Source-code-Formatter---Anyone-know-of-any-good-ones-tf3262125.html#a9066586
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/