开发者

javascript pretty html

开发者 https://www.devze.com 2023-02-05 18:05 出处:网络
Is 开发者_StackOverflowthere a javascript library that can make bad html readable? For example: <div><span></span></div>

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

精彩评论

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