Log file syntax highlighting in Notepad++

It’s always a pain to analyze log files using a text editor. The good news is that Notepad++ supports user-defined languages, so I wrote a custom syntax highlighter. I’ve kept it simple: green numbers, grey strings and custom colors for different log levels. But this little bit of color usage is a huge improvement while scrolling through tons of black text. Here’s how you enable it:

  1. Download this XML file
  2. Import the file: LanguageDefine your language...Import
  3. Restart the application.

Files with .log extension automatically use this syntax highlighter, but you can always activate it manually: LanguageLog file. You can also adjust the colors and/or keywords using the same dialog, no XML hacking needed.