HTML Tidy 处理部分文件?

发布于 2024-09-12 21:15:26 字数 201 浏览 2 评论 0原文

我有很多 Django 模板文件,我想使用 tidy 来清理它们。但是,它插入了我不想要的所有这些文档类型和标题垃圾。主要是,我只是想修复缩进。所有其他的东西都是额外的。

tidy 甚至可以处理这样的部分文件吗?我可以使用什么命令?

I've got a punch of Django template files that I want to use tidy to clean up. However, it inserts all this doctype and header junk that I don't want. Mainly, I just want it to fix the indentation. All the other stuff is just extra.

Does tidy even work on partial files like this? What command can I use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情感失落者 2024-09-19 21:15:26

请参阅

See this.

黎夕旧梦 2024-09-19 21:15:26

请改用 Pretty Diff 工具。它是一种更加完整的算法,并且它在不完整的输入上运行而不做任何假设。

http://prettydiff.com/?m=beautify&html

Use the Pretty Diff tool instead. It is a far more completely algorithm and it operates on incomplete input without making any assumptions.

http://prettydiff.com/?m=beautify&html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文