WinMerge : how to ignore specific words in a comparison?

mnflz picture mnflz · Mar 29, 2011 · Viewed 8.8k times · Source

When I compare 2 files with WinMerge on Windows platform, do you know how could I ignore specific words ?

I mean I wanna say to WinMerge : "Don't care about that list of words : house, garden, etc."

An so when comparing those 2 lines :

the house is at london

&

the bus is at london

then no difference will be displayed since I don't care about the word house...

Any idea ?

Answer

yohann.martineau picture yohann.martineau · May 19, 2020

In winmerge 2.16 (at least) (2020-05), you can use menu Plugins > Plugin Settings...

Click on PrediffLineFilter.sct, then click on the "Plugin Settings..." button, check in "Use RegExp" check box in the corresponding column. In the "Find what" column, specify a regexp and leave the "Replace with" cell empty. Close this plugin configuration window. Then, in the Plugins > Prediffer menu, select PrediffLineFilter.sct.

You can then turn off this filter plugin using menu Plugins > Prediffer > No Prediffer (normal).