How to copy marked text in notepad++

As of Notepad++ 5.9 they added a feature to ‘Remove Unmarked Lines’ which can be used to strip away everything that you don’t want along with some search and replaces for the other text on each value line.

  1. Use the Search–>Find–>Mark functionality to mark each line you want to keep/copy and remember to tick ‘Bookmark Line’ before marking the text
  2. Select Search–>Bookmark–>Remove Unmarked Lines
  3. Use Search–>Find–>Replace to replace other text you do not want to keep/copy with nothing
  4. Save the remaining text or copy it.

You can also do a similar thing using Search–>Bookmark–>Copy Bookmarked Lines

So technically you still cannot copy marked text, but you can bookmark lines with marked text and then perform various operations on bookmarked or unmarked lines.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)