On Dec 14, 3:30 am, Pedro Henrique Guedes Souto
<pedro.h.so...@gmail.com> wrote:
> On Tue, Dec 13, 2011 at 3:22 PM, prakash jp <prakash.st...@gmail.com> wrote:
> > Want to publish a log file as a web page, is there a parser to retain the 
> > format of the text as is and then convert to html. Please provide the 
> > relevant pointers

Hey Pedro,

You could also use pygments
to nicely format the logfile
perhaps even with Syntax Highlighting.

https://bitbucket.org/freecodeteam/hpaste/src/749c36d184a6/hpaste.circuits/paste.py

You could also provide an "Download" link
that services the file up as Content-Type: text/plain

cheers
James
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to