Define Unimportant Text in Beyond Compare 3

BC3 logo BC version 3 only

video2:27 video by user Bob Jones

To ignore text differences, define a new Grammar element (what the text is), then mark it as unimportant.

First, go to Tools | File Formats.  Make a new File Format, or edit an existing Format.

Go to the Grammar tab.  Add a new element and give it a new name (eg. "VarString").  It is important to change this from "New Element" since all New Elements across all file formats will be treated similarly by the Session Settings.  If you compare a Java file to a C++ file, and mark Strings as Unimportant, then both Java strings and C++ strings will be marked as Unimportant.

Define the element type:

  • Basic:  Match on a specific section of text.  Can be represented as a Regular Expression.
  • Delimited:  Match on a beginning point of text and an end point of text.  Can stop at End of Line.
  • List:  A list of Basic matches.  Can be used instead of individual Basic elements.
  • Columns:  A text section defined at a numerical beginning position in a line and an end position.  Can end at End of Line
  • Lines:  Match a beginning point of text or the first line and end a user-defined number of lines down.

Then open your pair of files in a Text Compare session.  Navigate to the Session | Session Settings | Importance tab.  Checked Items are Important.  Unchecked items are Unimportant.  Uncheck your new Element's name (eg. "VarString").

Differences that match your Element's definition will now appear as Blue text (Unimportant Differences) instead of Red text (Important Differences).  You can ignore/hide Blue text with the "Ignore Unimportant Differences" toggle.


Copyright © 2014 Scooter Software, Inc.