XHTML indent takes an XHTML file via standard input and outputs an indented version of the XML. It also adds comments to the end of closing tags so that you can quickly pick up on the opening tag without having to jump to the appropriate line. This does not convert bad code like HTML tidy does. It works with any XML formatted file, but has features designed for XHTML developers. This program works well as both a standalone tool or an external filter for a text editor.
License: GNU General Public License v2
Changes:
This release supports non-closing HTML 4 tags such as IMG, BR, and INPUT. It checks that the closing tag is for the open tag of the same indent level. The contents of SCRIPT and STYLE tags are now ignored. The comment at the end of a tag can now be disabled.
More...