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.
How skip tab, space, capital or small in DiffMerge
Moderator: SourceGear
-
- Posts: 1
- Joined: Tue Dec 04, 2012 11:10 pm
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: How skip tab, space, capital or small in DiffMerge
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
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