[Tutor] Generating HTML
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Fri Oct 1 23:03:33 CEST 2004
On Fri, 1 Oct 2004, Tony Cappellini wrote:
>
> At the moment, the file will contain text, but shortly it will need to
> contain a few links, so I need it to be in HTML, but don't want to
> handle the HTML details myself.
>
> I want to pas the name of a file to some function, that will spew out
> the text as HTML
Oh! In that case, have you looked at reStructuredText? It's a formatter
from plain text to HTML. It uses certain stylistic conventions to detect
when paragraphs should begin, where hyperlinks should be placed, and so
on:
http://docutils.sourceforge.net/rst.html
More information about the Tutor
mailing list