Notepad++: Rule based line highlighting

07
2013-08
  • Jonathan

    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.

  • Answers
  • Groo

    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.

  • Gnubie
    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.

  • mmdemirbas

    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.


  • Related Question

    Is there a Notepad++ feature to add some vertical space to the bottom or scroll below last line?
  • Prozaker

    Whenever I'm doing some coding in Notepad++ i need to add some lines at the bottom so if i scroll down, the code doesn't stop at the bottom at the window. The problem is that I sometimes forget to take out the lines :/.

    I need to know if there's some kind of plugin or feature that I may have missed that adds some vertical space at the bottom without being actual lines.

    Or I have it all wrong and i should just resize the window?


  • Related Answers
  • Raveren

    Scroll past end of file plugin has been updated.

  • user155695

    What about setting up a macro in Notepad++ ?

    Maybe you can record : Ctrl+end, enter, enter, enter, enter etc

    Either that or create a batch/shell script that appends blank lines to your file(s)?

    Hope this helps