Search code examples
winmerge

Winmerge : how to ignore differences in lines with a special ending tag


I would like to ignore difference in lines, if one of the files has a line ending with //ignore is this possible? how would the regular expression for the line filter be written?

tried .*//ignore$ but this does not work


Solution

  • When you launch a file compare from the Select Files or Folders dialog, after choosing the Left and Right files, click Select next to the Filter field.

    In the Filters dialog, click the Linefilters tab, create the following line filter (add)

    ^//ignore

    Enable the line filters you want to use and run your comparison.

    Have fun!