PDA

View Full Version : ASP files


FlashMerlot
29-Nov-2007, 11:26 AM
In classic ASP, the following two code segments are identical regardless of line-feed/carriage-return

======================fileONE===================
<%If Errors Then%><%=ErrorMessage%><hr size="1" color="#cccccc" noshade><%End If%>

======================fileTWO===================
<%If Errors Then%>
<%=ErrorMessage%>
<hr size="1" color="#cccccc" noshade>
<%End If%>


How do I tell Beyond compare they are identical? And the differences are unimportant? Where differences are Carriage-Returns and/or Line-Feeds?

Aaron
29-Nov-2007, 12:59 PM
Beyond Compare compares Text on a Line by Line basis. The way to compare those two files is to sort/change one format to match the other.

http://www.scootersoftware.com/support.php?c=kb_morerules.php

We do not have an ASP rule, but HTML/XML Tidy may help in your case. Try it out on some Test/Backed-up files.