No announcement yet.

Have lines ingnored during text compare

  • Filter
  • Time
  • Show
Clear All
new posts

  • Have lines ingnored during text compare

    i have 2 code files, one has comments in it and one doesn't

    i have successfully made comments unimportant, but...

    i need the compare engine totally ignore the lines starting with * so that it doesn't try to line real code up with a position that is a comment on the other side.

    Lines to be completely ignored could also start with one or more tabs followed by a *

  • #2
    how to ignore comments

    is there any way to define that a coment line should be completely ignored during a test compare?

    the problem i am having is that the files are lines up wrong, some code with a long comment in the other file.


    • #3

      Are these comments currently coming up as blue text (or black text when Ignore Unimportant Differences is enabled) when you view your files?

      The grammar definition should help 'nudge' the alignment a bit.

      How large are the comment sections? You may need to increase the Skew Tolerance in the Text Compare Session menu -> Session Settings, Alignment tab to be larger if the comment section is sufficiently large.

      If you are still having any trouble, would it be possible to get a pair of sample files? You can email them in to [email protected] with a link back to this forum thread for our reference. Please also include you BC from the Help menu -> Support; Export.
      Aaron P Scooter Software