HTML格式

标签 html code-formatting

我必须对一些未格式化的 HTML 进行一些更改(没有换行符,什么也没有),并且想知道是否有任何基于 Web 或开源的工具可以自动格式化它以使其更易于阅读。

谢谢!

最佳答案

看看tidy - 文档概述:

When editing HTML it's easy to make mistakes. Wouldn't it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely layed out markup? Well now there is! Dave Raggett's HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.

关于HTML格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1244645/

相关文章:

html - 如何对齐自举网格

python - 在 ElementTree 文本中插入标签

html - 普通网站如何开启https协议(protocol)?

playframework - 是否可以使用 play framework 2 美化 scala 模板?

code-formatting - Roslyn - 替换节点并修复空格

html - 为什么在容器中使用 flexbox 可以防止 inline-block 的额外空间

javascript - chrome 设置的不透明度未按预期一致渲染

html - 生成 html 时,是否包括换行符和制表符等格式?

Python Black Code Formatter - 在将项目提交到 Github 之前是否有任何方法可以应用自动黑色格式化

javascript - 使用 --fix 运行时 ESLint 错误 'Invalid count value'