Skip to content

Format xml3d nicely?

xml3d edited this page Jan 11, 2013 · 1 revision

Here is a little trick to how to format your XML3D code nicely. There is a tool called HTML Tidy to fix invlaid HTML and to pretty print the markup. With XML3D as extension to HTML it works of course also for XML3D. I love it

Here my favorite parameters.

tidy -xml -i -w 0 -o out.xhtml in.xhtml

-xml    Use XML encoding of HTML
-i     reindent
-w 0    no line wrapping
-o    out file 
Clone this wiki locally