Popular programmer's editor Notepad++ provides syntax highlighting for several programming and scripting languages. Because, I don't like reading code as plain text, this is very nice feature for a programmer like me. But better one is that Npp makes extendable this feature allowing you to create custom syntax highlighting:User-defined language (UDL).
To take advantage of the UDL, open User-Defined Dialogue... under View menu:
A window like below one will pop up:
Now, you can play with the toy or import an existing UDL file (which is an XML file). My custom UDL for LogFiles is below. Save as LogFile.xml (or dowload directly):
Press Import... button and select LogFile.xml you just saved:
OK. Whenever you want to highlight a file according to LogFile UDL rules, you can select it under Language menu:
But, this is impractical. You want to see log files highlighted everytime you open a file with .log extension, don't you? So, you should associate log extension with LogFile UDL. Just write the extension to the box labeled as Ext. Note that you can write multiple extension separating them with spaces:
You will end up a log file like below:
Nice, isn't it?