Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
2  
Line hiding is under TextFX->TextFX Viz. –  MBraedley Dec 11 '10 at 20:22

3 Answers 3

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
  1. Select View > User-Defined Dialog...
  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
2  
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

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

Your Answer

 
discard

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.