MML (Mail Markup Language)Please test out my Pretty Diff tool if you write code.
mailmarkup.org/prettydiff/pret…This tool is designed to be a differencing tool that minifies and then beautifies code before diffing it. The idea is to be able to diff code without regard for comments, white space, or minification. It shows differences per line and highlights the specific characters that are different.
The tool can also be used to minify and beautify JavaScript, CSS, and almost any markup language. It provide tolerance for PHP, ASP, and SSI tags. The markup beautification does not inject additional white space that would result in additional white space of the parsed output if that markup were rendered. The markup minification preserves white space between content and tags.
What I intentionally do not support:
* The markup beautification is completely vocabulary independent, except for the contents of script and style tags. This means it cannot recognize singleton tags unless they are properly ended with a forward slash before the greater than sign delimiter. This is an intentional decision.
* PHP tags must begin as a less than sign plus ?php. Tags that begin with only a less than sign and a question mark throw an error to XML parsers, and so I do not support them. Improperly defined PHP tags will be treated as the start tag of a tag pair, which will throw off the indentation, and its innards will be minified.
Please comment if you find this useful. If you do decide to use this tool please let me know if you find any errors so that I may fix them for you. The tool is written entirely in JavaScript, so it is completely portable.