Is there a way to specify to ignore specific text? For example I have web files that are often the same execpt for the difference in file paths - local vs. remote paths. So in one file I will have:
http://localhost/mysite.com/index.php
and in the other,
http://www.mysite.com/index.php
Can I specify to ignore any of these strings, and if so, how do I do that?
To ignore text differences, define a new Grammar element (what the text is), then mark it as unimportant.
Using Beyond Compare 3 Pro you can set up a replacement that will ignore changes of one string to a specific other one.
http://localhost/mysite.com/
in the Text to find edit and http://www.mysite.com/
in the Replace with edit.You can also right click on differences and use the Replacement command to automate some of the above steps. It tries to pre-fill in what the replacement should be, but doesn't always get it right.
If you want to ignore something that can't be handled by a replacement because the to-state isn't easily defined such as mismatching page numbers you need to use a regular expression grammer to ignore certain strings.
In my case I needed to ignore Page numbers in a document footer
Here is how to do it:
Your grammer should now be marked as unimportant (blue text)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With