Syntax Coloring
Grant Edwards
grante at visi.com
Mon May 5 10:27:14 EDT 2003
In article <b919t60308p at enews4.newsguy.com>, Greg Krohn wrote:
>
> "Salvatore" <artyprog at wanadoo.fr> wrote in message
> news:b913v2$3n3$1 at news-reader11.wanadoo.fr...
>> Hello,
>>
>> I have a Forum site for beginners in Python
>> running on Zope Squishdot.
>> I would like to publish python scripts with syntax coloring.
>> Although Squishdot support HTML tags it does not support the <PRE> tag
>> Does anyone have a solution ?
>>
>> Thanks
>>
>> Salvatore
>>
>
> Could you use the output of py2html and:
> * replace the spaces at the beginning of lines with ' '.
> * add '<BR>' to the end of the lines.
> * replace the '<PRE>' tag with '<DIV style="font-family: monospace;">' and
> the closing tag to match.
And don't forget to escape any characters that mean something
in HTML...
--
Grant Edwards grante Yow! Oh, FISH sticks,
at CHEEZ WHIZ, GIN fizz,
visi.com SHOW BIZ!!
More information about the Python-list
mailing list