Ability to ignore certain differences in "compare contents"
Posted: 2022-02-16, 00:25 UTC
I often compare 2 files which are very similar expect that one of them has the string ABC and the other has the string XX in multiple places.
Obviously, compare will highlight these differences in red.
But sometimes I'd like to hide these particular differences and only see the remaining differences.
Eg, if I have 2 files a.txt and b.txt
a.txt:
[abc]
name=abc
option1=29
option2=37
b.txt:
[xxxx]
name=xxxx
option1=7
option2=37
It would be great if I could enter pairs of string (eg "abc" and "xxxx") somewhere and whenever the diff tool sees a difference with this pair then to not highlight it in red.
Even better if I can select existing highlighted differences, right click and have a menu option to add that pair to the difference list.
In this way, when comparing 2 config files like above I would only see the difference of 29 vs 7, not the unimportant (to me) differences of abc vs xxxx .
Thanks.
Obviously, compare will highlight these differences in red.
But sometimes I'd like to hide these particular differences and only see the remaining differences.
Eg, if I have 2 files a.txt and b.txt
a.txt:
[abc]
name=abc
option1=29
option2=37
b.txt:
[xxxx]
name=xxxx
option1=7
option2=37
It would be great if I could enter pairs of string (eg "abc" and "xxxx") somewhere and whenever the diff tool sees a difference with this pair then to not highlight it in red.
Even better if I can select existing highlighted differences, right click and have a menu option to add that pair to the difference list.
In this way, when comparing 2 config files like above I would only see the difference of 29 vs 7, not the unimportant (to me) differences of abc vs xxxx .
Thanks.