Wanted:命令行HTML5 beautifier [英] Wanted: Command line HTML5 beautifier

查看:206
本文介绍了Wanted:命令行HTML5 beautifier的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux下运行的命令行HTML5美化程序。

A command line HTML5 beautifier running under Linux.

乱码,丑陋的HTML5代码。可能是多个模板的结果。你不爱它,它不爱你。

Garbled, ugly HTML5 code. Possibly the result of multiple templates. You don't love it, it doesn't love you.

纯粹的美。代码很好缩进,有足够的换行符,关心它的空格。

Pure beauty. The code is nicely indented, has enough line breaks, cares for it's whitespace. Rather than viewing it in a webbrowser, you would like to display the code on your website directly.


  • 整洁太多了(heck,它改变了我的doctype!),它不能很好地与HTML5。
  • tidy does too much (heck, it alters my doctype!), and it doesn't work well with HTML5. Maybe there is a way to make it cooperate and not alter anything?
  • vim does too little. It only indents. I want the program to add and remove line breaks, and to play with the whitespace inside of tags.

推荐答案

HTML Tidy已经由w3c分支,现在支持HTML5验证。

HTML Tidy has been forked by the w3c and now has support for HTML5 validation.

https://github.com/w3c/tidy-html5

这篇关于Wanted:命令行HTML5 beautifier的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆