rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
847 stars 115 forks source link

LTSV scanner #127

Open a2ikm opened 11 years ago

a2ikm commented 11 years ago

I've written a Coderay scanner for LTSV (Labeled Tab-Separated Values) which is a text format like below:

host:127.0.0.1<TAB>ident:-<TAB>user:frank<TAB>time:[10/Oct/2000:13:55:36 -0700]<TAB>req:GET /apache_pb.gif HTTP/1.0<TAB>status:200<TAB>size:2326<TAB>referer:http://www.example.com/start.html<TAB>ua:Mozilla/4.08 [en] (Win98; I ;Nav)

It is mainly used for logs and actually supported by fluentd, a log collector.

I use this format for logging web servers and applications, and watching it with ltsview, but it is difficult to recognize labels or values. So I wrote the scanner to color them.

Thanks.