Highlighting an Entire Line
-
I use BareTailPro quite a lot because I can highlight entire lines containing certain keywords and it makes it easier to navigate through a complicated log.
Notepad++ will allow me to highlight only those keywords if I define my own language. I would really like to be able to edit logs within Notepad++ but maintain this highlighting.
Is anyone aware of a plugin that will allow an entire line to be highlighted and not just the keyword?
-
I don’t know of a plugin that does that, per se.
However, there might be something that will help.
If you use Search > Mark instead of Search > Find (or go to the Mark tab from the normal Find dialog), using Mark All will mark the individual words:

But if you enable the
☑ Bookmark Lineoption, then it will put a “bookmark” on the line, as well:

Once bookmarked, you can use the Search > Bookmark > submenu (or the keyboard shortcuts shown) to navigate between the bookmarked lines, and perform other actions (like copy all the bookmarked lines or delete everything that is (or is not) bookmarked).
-
If you truly want the whole line highlighted, you can do a marking operation similar to what Peter shows, but do it in regular expression search mode and use a Find what field of:
(?-s)^.*?(?=word1|word2|word3).*$where word1, etc is your text of interest.
There are some limitations: won’t save/restore with restarts of N++, new text added to the file after the marking operation won’t automagically get the highlighting…probably some other issues as well.
-
…a bit late to the party but if s/o stumbles over this thread:
The NP++ plugin LineHighlighter does the job very well, Virustotal showed 0/71 pos. virus/malware tests for the plugin.
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