Announcement

Collapse
No announcement yet.

How to show same text as not-different

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to show same text as not-different

    In attached pic:

    left side has an if statement around some text (a function call)...

    on right side has same text (the function call) without the surrounding if...

    how do I get the common text to not be highlighted (or colored) as different...?

    Thanks


    ( I couldn't think of a better title that was sufficiently terse )
    Attached Files

  • #2
    For you text compare settings do you have leading white space checked. if so try unchecking and retrying the comparison.

    Comment


    • #3
      Hello,

      If you click the cursor next to the text (not highlight, but just click), we will show the detected grammar element name in the bottom status bar. In your screenshot, they both show as Identifier based on where your cursor currently is, but if you move it to the different area, I expect we'll see a change.

      Different grammars will be considered a difference, even if the text values are the same. Such as "String" vs String. Depending on the detected grammar types, this may have an impact on your comparison.
      Aaron P Scooter Software

      Comment


      • #4
        Originally posted by lhasadad View Post
        For you text compare settings do you have leading white space checked. if so try unchecking and retrying the comparison.
        Yes, I tried that already.

        Comment


        • #5
          Originally posted by Aaron View Post
          Hello,

          If you click the cursor next to the text (not highlight, but just click), we will show the detected grammar element name in the bottom status bar. In your screenshot, they both show as Identifier based on where your cursor currently is, but if you move it to the different area, I expect we'll see a change.

          Different grammars will be considered a difference, even if the text values are the same. Such as "String" vs String. Depending on the detected grammar types, this may have an impact on your comparison.
          Hmmm, so I'll set the Format to Everything Else and then see what it shows...

          Comment


          • #6
            Originally posted by joecar View Post
            Hmmm, so I'll set the Format to Everything Else and then see what it shows...
            Yep that works, see attached pic...

            so now I'm pondering what are the implications of this...
            Attached Files

            Comment


            • #7
              Everything Else defaults with no grammar definitions, so you would lose the ability to mark different grammars as different in the above scenario, where text is equal but different grammar types (Comments, Strings, etc). You would also lose Syntax coloring. Otherwise, using a File Format with no grammars will compare all text as "default text", and align line by line.
              Aaron P Scooter Software

              Comment


              • #8
                Ok, thanks for the explanation.

                Comment

                Working...
                X