How skip tab, space, capital or small in DiffMerge

Support for our DiffMerge utility.

Moderator: SourceGear


Posts: 1
Joined: Tue Dec 04, 2012 11:10 pm
PostPosted: Tue Dec 04, 2012 11:24 pm
Thanks.
I want to comper the followin mode:
- Do not detect the diffrence of number of tab and space.
- Do not detect the diffrence of capital or small letter of alphabet.
How do the above comperison as use to the DiffMerge.

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Wed Dec 05, 2012 2:41 pm
You can modify or create a new "Ruleset" and customize it to meet your needs.
A ruleset is chosen by file suffix. See the options/preferences dialog. There are
predefined rulesets for several popular programming languages.

Open an existing ruleset (or create a new one).

In the "Edit Ruleset" dialog:
[1] click the "Line Handling" item on the left side. These settings control how
we ignore/respect differences when matching up the lines within the files.
Make sure all 4 fields are enabled.

[2] click the "Content Handling" item on the left side. These settings control
how we decorate changes (after having matched up the lines). Turn off
"Case is Important" and turn off "Whitespace is Important" under the "Default
Context Guidelines".

Save all that and then compare the files.

Then turn on "Hide Unimportant Differences" using the "View" menu.

Hope this helps,
jeff

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 3 guests