• Login
Community
  • Login

How to return multiple lines before and after the search term

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.6k 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.
  • M
    Matthew Hinkle
    last edited by Aug 14, 2017, 1:31 PM

    Hi, I can’t seem to find this but when using the search tool, it only returns the line with the search term–is there a way to make it return 3 or 4 lines before and after the search term?

    S 1 Reply Last reply Aug 14, 2017, 2:00 PM Reply Quote 0
    • S
      Scott Sumner @Matthew Hinkle
      last edited by Aug 14, 2017, 2:00 PM

      @Matthew-Hinkle

      Not natively, but you could give the LineFilter2 plugin a try. It has options to show lines before and after matches:

      Not sure if this is a downside for you or not, but it puts the results in a new editor tab window…

      If this (or ANY posting on the Notepad++ Community site) is useful, don’t reply with a “thanks”, simply up-vote ( click the ^ in the ^ 0 v area on the right ).

      1 Reply Last reply Reply Quote 1
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors