Please enable JavaScript to view this site.

Beyond Compare

The Alignment settings control the algorithm for aligning lines in the comparison.

1.While in a Text Merge session, choose Session | Session Settings to open the Session Settings dialog.

2.Click the Alignment page.

3.Choose an alignment algorithm:

oSelect the Never align differences checkbox to show lines with important differences as blocks of added and deleted text rather than changed text.

oSelect Unaligned to compare files without aligning lines based on their content.

oSelect Standard alignment to align the files by comparing successively smaller sections of each file.  Parts of the alignment can be shown before the entire comparison is finished.

oSelect Myers O(ND) alignment to align the files using a common LCS (Longest Common Subsequence) algorithm.  This can give better matches in certain cases, such as large inserts or when the files contain a lot of repeating text.  Since files are compared all at once, larger file scans take much longer than the standard method, and the files are not displayed until the comparison is complete.  It does not support similarity comparisons, so mismatches will be grouped in blocks.

oSelect Patience Diff alignment to align the files using Bram Cohen's algorithm.

4.Choose a Skew tolerance value to specify the maximum number of lines that the algorithm will check when looking for a match to a particular line.  Increasing the setting can improve the alignment, especially if there are large gaps.  Of course, the comparison may also require more time.

5.Select the Use closeness matching checkbox to attempt to align the remaining mismatched rows based on their similarity.

6.Select an A merge conflict is radio button to define the scope of conflicts.  A conflict occurs when the same section of text has changes on both left and right sides.

oSelect Only different change lines to limit conflicts to where each line has changes on both sides.  

oSelect Left change and right change separated by lines to specify the maximum number of lines between changes that should be considered conflicts.  This way, left and right changes that are close to each other can be flagged for review along with direct conflicts.

Note  Regardless of these settings, the alignment algorithm will sometimes produce undesirable results.  To manually align two lines, right-click one line and choose Align With and then click the second line.