Submission + - XMQ/HTMQ A better html than html? (libxmq.org) 3
anjara writes: HTML and XML are the perhaps mostl widely used computer languages in the world. Alas, they are also hard to pretty print. In fact, it is nigh impossible to pretty print HTML without potentially introducing significant whitespace.
The XMQ language (https://libxmq.org) language can store XML/HTML (and JSON) documents and always be pretty printed. Use the xmq tool to pretty print any XML/HTML/JSON into XMQ which is much easier to read and can be syntax colored in your terminal or in your browser.
You can also convert back and forth between XMQ and XML, HTML and JSON, taking advantage of both XML toolchains and JSON toolchains.
Here is an excerpt from the XMQ homepage:
XML can be human readable/editable if it is used for markup of longer human language texts, ie books, articles and other documents etc. In these cases the xml-tags represent a minor part of the whole xml-file.
However XML is often used for data storage and configuration files (eg pom.xml). In such files the xml-tags represent a major part of the whole xml-file. This makes the data storage and config files hard to read and edit directly by hand. Today, the tags are a major part of html files as well, which is one reason why html files are hard to read and edit.
XMQ solves the verbosity of tags by using braces to avoid closing xml-tags and parentheses to surround the attributes. XMQ solves the whitespace confusion by requiring all intended whitespace to be quoted.
You can try it now on GNU/Linux, MacOS and Windows!
The XMQ language (https://libxmq.org) language can store XML/HTML (and JSON) documents and always be pretty printed. Use the xmq tool to pretty print any XML/HTML/JSON into XMQ which is much easier to read and can be syntax colored in your terminal or in your browser.
You can also convert back and forth between XMQ and XML, HTML and JSON, taking advantage of both XML toolchains and JSON toolchains.
Here is an excerpt from the XMQ homepage:
XML can be human readable/editable if it is used for markup of longer human language texts, ie books, articles and other documents etc. In these cases the xml-tags represent a minor part of the whole xml-file.
However XML is often used for data storage and configuration files (eg pom.xml). In such files the xml-tags represent a major part of the whole xml-file. This makes the data storage and config files hard to read and edit directly by hand. Today, the tags are a major part of html files as well, which is one reason why html files are hard to read and edit.
XMQ solves the verbosity of tags by using braces to avoid closing xml-tags and parentheses to surround the attributes. XMQ solves the whitespace confusion by requiring all intended whitespace to be quoted.
You can try it now on GNU/Linux, MacOS and Windows!