Search code examples
javascriptsyntaxhighlightingsyslog

Javascript library for syntax-highlighting syslog text logs?


I'm display some plain-text syslog output on a web page. I'd really like to pretty-print it, highlighting dates and hostnames. Are there any javascript syntax highlighting libraries which come with syslog support?


Solution

  • There is a nice JavaScript syntax highlighter. It doesn't support the syslog but since it is not a very complex format it shouldn't be too hard to create a custom brush for it.