by rhapdog » Mon Mar 19, 2012 5:17 pm
I do see where this would come in handy, especially since there are times that I would like to compare 2 files that have been submitted to me for review, where one is a "minified" version, for example a JavaScript or CSS file, and the other is supposedly (but not always, as sometimes there is an error in one and not the other) the same thing but not minified. A comparison like that would certainly make tracing issues easier, although I wouldn't expect it to be in the "lite" version of UltraCompare.
It is not, however, at this time supported by UltraCompare Lite or Professional, nor any other product that I am aware of.
Since "white space" (tabs and spaces) can be ignored completely and discarded, it is "technically" true that line terminators could be "discarded" while comparing, however, since the compare utilities have to show you the "line by line" differences, it would be impossible to visually show you where the differences are in the files. The utility would be limited to stating "files match" or "files do not match." Not very helpful. I suppose someone could come up with a way to visually "compare" the two uneven lined files, however, it would not be easily understood by the average user, and, quite possibly impossible to understand for most. It would, at the very least, be a very ugly representation.
What you really need is a code formatter to reformat the code in a more readable format before you do the compare. Running HTML Tidy on an HTML document will fix those lines up to be the same before you run the compare. Try it and see.