开发者

javascript pretty html

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜