Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Can I copy highlighted lines in Notepad++?

Tags:

notepad++

I used Compare Plugin in Notepad++. I want copy only highlighted lines. The lines are not bookmarked.

http://img96.imageshack.us/img96/4524/highlightlines.png

like image 409
user1391247 Avatar asked Jun 14 '12 00:06

user1391247


People also ask

How do you copy only marked lines in Notepad++?

Go to Search menu and select mark option.. (Ctrl+M) Enter what you want to find and click mark all option then click on copy marked text and paste wherever you want.


1 Answers

The only way I have found to do this so far, and it's not ideal if there are loads of lines that are different, is this.

  1. Put your cursor at the top of the file.
  2. You can then click the "Next" (the down arrow) icon and this will take you to the first difference.
  3. Press ctrl+F2 to toggle the bookmark
  4. Repeat steps 2 and 3 until you're at the end of the file
  5. Open the Search Menu > Bookmark > Copy Bookmarked Lines.

You can then paste the lines wherever you want. I'm not sure if maybe you could write this into a macro.

like image 146
dopple Avatar answered Sep 20 '22 12:09

dopple