• Login
Community
  • Login

How to select OR bookmark only different (Diff) lines when comparing two text files

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    ADEYEMI SAMUEL
    last edited by Jan 15, 2024, 9:22 AM

    Hi,

    Is there a way to bookmark or select only the differing (Diff) lines after comparing two text files in Notepad++?

    I aim to copy out only the differences without having to select each line individually. Manually selecting multiple differing lines is time-consuming and often leads to errors in my work.

    Thanks in advance for any help!

    M C 2 Replies Last reply Jan 15, 2024, 6:06 PM Reply Quote 0
    • M
      Mark Olson @ADEYEMI SAMUEL
      last edited by Jan 15, 2024, 6:06 PM

      @ADEYEMI-SAMUEL
      Assuming you’re using ComparePlus (which is the compare plugin I would use if I were you), you could make a feature request in that GitHub repository. I looked through the features in ComparePlus, and I didn’t see anything like what you asked for.

      A 1 Reply Last reply Jan 15, 2024, 7:11 PM Reply Quote 0
      • C
        Coises @ADEYEMI SAMUEL
        last edited by Jan 15, 2024, 6:56 PM

        @ADEYEMI-SAMUEL said in How to select OR bookmark only different (Diff) lines when comparing two text files:

        Is there a way to bookmark or select only the differing (Diff) lines after comparing two text files in Notepad++?

        I aim to copy out only the differences without having to select each line individually.

        I don’t know of a way using only Notepad++. I can suggest the free and open source program WinMerge . Compare the two files, select View | Diff Context | 0 Lines and you will see only the lines that are different. Click in the side you want to copy, select all and copy (Ctrl+A then Ctrl+C); you can then paste the result into a new Notepad++ tab.

        A 1 Reply Last reply Jan 15, 2024, 7:12 PM Reply Quote 1
        • A
          ADEYEMI SAMUEL @Mark Olson
          last edited by Jan 15, 2024, 7:11 PM

          @Mark-Olson , thanks for your response. I actually use ComparePlus, like you said I will make feature requests in GitHub Repository. Thank you once again.

          A 1 Reply Last reply Jan 15, 2024, 8:23 PM Reply Quote 0
          • A
            ADEYEMI SAMUEL @Coises
            last edited by ADEYEMI SAMUEL Jan 15, 2024, 7:13 PM Jan 15, 2024, 7:12 PM

            @Coises Awesome!. I appreciate your input. Am trying that out now. Thank you once again.

            1 Reply Last reply Reply Quote 0
            • A
              ADEYEMI SAMUEL @ADEYEMI SAMUEL
              last edited by Jan 15, 2024, 8:23 PM

              @ADEYEMI-SAMUEL this works for me. Appreciated @Coises

              1 Reply Last reply Reply Quote 0
              • C Coises referenced this topic on Apr 9, 2024, 7:16 PM
              5 out of 6
              • First post
                5/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors