How to return multiple lines before and after the search term
-
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?
-
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 varea on the right ).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login