Is 开发者_StackOverflowthere a javascript library that can make bad html readable?
For example:
<div><span></span></div>
into
<div>
<span></span>
</div>
If you use Firebug on FireFox, HTML is all laid out nicely in the HTML pane.
Depends if you want to reasd it, or save it in a readable form (which Firebug won't)
If you just want to ident your code, use your favorite ide. If it is eclipse, the shortcut is something like ctrl + shift + f
精彩评论