Ignore lines containing a string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjayssk
    New User
    • Jul 2016
    • 1

    Ignore lines containing a string

    When comparing Delphi DFM files, I don't want to stop at lines containing Explici. I tried to search this form but all threads related to this are very old, for older versions. Please tell me step by step how to set up this ignore in BC 4.

    Thanks,
    Sanjay
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Hello,

    We have a KB article for ignore specific text with a video here:
    http://www.scootersoftware.com/suppo..._unimportantv3

    The BC3 interface for ignoring text is largely identical in BC4, so the above text should be helpful. For a BC4 specific video, you can also watch this one here:
    http://www.scootersoftware.com/support.php?zz=v4videos

    The key is to configure a grammar that matches on your text. The default Delphi Source File Format (Tools menu -> File Formats, Delphi Source) already has a String grammar defined, so if you need to match on a Delphi string, you do not need to recreate a grammar.
    Then, in the Text Compare, go to the Session menu -> Session Settings, Importance tab, and Uncheck the grammar name. Unchecked items are Unimportant, while Checked items are Important.

    If you are still having any trouble, please email us at [email protected] with:
    1) A pair of sample files
    2) A full screen screenshot showing the files and text you need to set as unimportant
    3) Your BCSupport.zip from the Help menu -> Support; Export
    4) A link back to this forum thread for our reference.
    Aaron P Scooter Software

    Comment

    • Zoë
      Team Scooter
      • Oct 2007
      • 2666

      #3
      Aaron's answer handles the general case. For the Explicit* properties specifically, I have an answer up on StackOverflow that lists the exact steps.
      Zoë P Scooter Software

      Comment

      Working...