text to html
James Mills
prologic at shortcircuit.net.au
Wed Dec 14 08:54:52 EST 2011
On Dec 14, 3:30 am, Pedro Henrique Guedes Souto
<pedro.h.so... at gmail.com> wrote:
> On Tue, Dec 13, 2011 at 3:22 PM, prakash jp <prakash.st... at 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
More information about the Python-list
mailing list