Is there a way to ignore the case of letters when doing a diff? For example, I do not want "SQL" vs "sql" to show up as a difference.
Thank you.
How do I ignore letter case during diffs?
Moderator: SourceGear
-
- Posts: 534
- Joined: Tue Jun 05, 2007 11:37 am
- Location: SourceGear
- Contact:
Re: How do I ignore letter case during diffs?
In DiffMerge you can have it ignore case. There are several options here,
but I'll give you the most inclusive:
In the status bar at the bottom of the screen on the file difference window
you should see the name of a Ruleset. Open the Options Dialog and select
the "Rulesets" page. Edit the Ruleset that was listed in the status bar.
[] On the "Line Handling" page, make sure that the "Ignore/Fold Case..." item
is checked.
[] On the "Content Handling" page, un-check "Case is Important" in the "Default
Context".
Then close the dialogs.
With all this in place, you can show/hide differences in case by using the
"Hide Unimportant Differences" on the View Menu.
This should take care of most of what you want. It will ignore case differences
in most of the document. If the Ruleset has defined "Literal Contexts", such as
quoted strings, you'll still see differences there. These can be turned off too,
by editing each of the individual literal context definitions like you did for the
default context.
Let us know if you have questions or problems getting this to work,
jeff
but I'll give you the most inclusive:
In the status bar at the bottom of the screen on the file difference window
you should see the name of a Ruleset. Open the Options Dialog and select
the "Rulesets" page. Edit the Ruleset that was listed in the status bar.
[] On the "Line Handling" page, make sure that the "Ignore/Fold Case..." item
is checked.
[] On the "Content Handling" page, un-check "Case is Important" in the "Default
Context".
Then close the dialogs.
With all this in place, you can show/hide differences in case by using the
"Hide Unimportant Differences" on the View Menu.
This should take care of most of what you want. It will ignore case differences
in most of the document. If the Ruleset has defined "Literal Contexts", such as
quoted strings, you'll still see differences there. These can be turned off too,
by editing each of the individual literal context definitions like you did for the
default context.
Let us know if you have questions or problems getting this to work,
jeff
Re: How do I ignore letter case during diffs?
Jeff -
This worked. Thank you very much.
- Gene
This worked. Thank you very much.
- Gene
Re: How do I ignore letter case during diffs?
Glad that worked for you.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager