views:

30

answers:

1

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?

A: 

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.

Daff