To configure the Files Comparison options, open the
Preferences dialog box and go to . This preferences page allows you to configure the following options:
- Default algorithm - the default algorithm used
for comparing files. The following options are available:
- Auto - automatic selection of the diff algorithm, based on the
content and size
- Characters - computes the differences at character level
- Words - computes the differences at word level
- Lines - computes the differences at line level
- Syntax aware - computes differences for the file types or XML
fragments known by Oxygen XML Editor, taking the syntax (the specific types of
tokens) into consideration
- XML Fast - a diff algorithm well-suited for large XML documents
or fragments (sacrifices accuracy in favor of speed)
- XML Accurate - XML-tuned diff algorithm that favors accuracy
over speed
- Algorithm strength - controls the amount of resources allocated to
the application to perform the comparison. The algorithm stops searching more differences
when reaches the maximum allowed resources. A dialog box is displayed when this limit is
reached and partial results are displayed. Four settings are available:
Low, Medium (default),
High and Very High.
- Ignore Whitespaces - ignoring whitespaces means that before
performing the comparison, the application normalizes the content (collapses any sequence of
whitespace characters (space, newline or tab characters) into a single space) and trims its
leading and trailing whitespaces.
Note: If the Ignore Whitespaces
check box is selected, comparing the a b sequence with a
b, Oxygen XML Editor finds no differences, because after normalization,
all whitespaces from the first sequence are collapsed into a single space character.
However, when comparing a b with ab (no whitespace
between a and b), Oxygen XML Editor signals a
difference.
- XML Diff Options - this set of options allows you
to specify the types of XML nodes for which the differences will be ignored (will not be
reported) by the XML Fast and XML Accurate
algorithms.
- Merge adjacent differences - considers two adjacent differences as
one when the differences are painted in the side-by-side editors. If unchecked, every
difference is represented separately.
- Mark end tags as different for modified elements - end tags of
modified elements are presented as differences too, otherwise only the start tags are
presented as differences.
- Ignore expansion state for empty elements - empty elements in both
expansion states are considered matched, that is <element/> and
<element></element> are considered equal.