Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to automatically highlight lines based on predefined rules in Notepad++?

I'm not talking about syntax highlighting, but rather about log files readability.

I'm looking either for a feature I've missed, or a plugin.

share|improve this question
Would line hiding suffice? I'm thinking hiding lines that you don't want to see so that you can more easily see the important lines. – MBraedley Dec 11 '10 at 3:02
@MBraedley - That sounds useful, how do you do that? But for my usecase it's not a good solution, I need to see many lines of log and coloring them based on their contents would help me greatly – Jonathan Dec 11 '10 at 16:18
Line hiding is under TextFX->TextFX Viz. – MBraedley Dec 11 '10 at 20:22
  1. Select Language > Define your language... (or View Language > User-Defined Dialog..., or Language > User-Defined, depending on version and localisation file)
  2. Use the User-Defined dialogue to specify what to highlight. To highlight certain words, use the Keyword Lists tab and enter each word in a Group, selecting Colour/Font style as you like. You can also use Comment Line on the Comment & Number tab to highlight from a word to the end of the line (check Treat keyword as symbol for partial word match).
  3. Select Language > User-Defined

If you want to use this highlighting scheme regularly, you can save it by clicking Save As.... This scheme should now be listed under the Language menu of the main Notepad++ window.

share|improve this answer
almost but no cigar... I really need to highlight certain lines in a log file. not certain words or from a word onward... – Jonathan Feb 21 '12 at 13:54

I have the same need. "Highlighting lines that contain specific keywords". I currently use Baretail or better: Glogg for this, but it would be nice to see this in Notepad++.

I generally use Notepad++ to browse through log files. Certain events start with specific keywords; line highlighting in Notepad++ would allow me to quickly find the events in the log.

share|improve this answer

There's a plugin for N++ now called AnalysePlugin that might fit the bill. It allows for normal, regex, and escaped searches. It dumps results to another pane but you can color foreground and background properties of the results as well as save and load filter sets.

share|improve this answer

As stated before me:

Select Language > Define your language... (or View Language > User-Defined Dialog..., or Language > User-Defined, depending on version and localisation file)

In my case. I needed to color code lines starting with "V"{tab} I set Delimiter 1 style:

  • Open: V
  • Escape:
  • Close:((EOL))

This would highlight also mid text V and on, so I copied a {tab} into

Open: V{tab} //{tab} is not visible but present

I found out that {tab} is in exported .xml encoded as 	 which stands for exactly what I needed. So by modifing the xml with unicode caracter codes

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.