Take a look at gluon/html.py and gluon/highlight.py
I saw some code there that does exactly what you need.
CODE helper takes styles={} as an argument to build the style tag of <pre>
Enviado via iPhone
Em 28/09/2010, às 03:21, annet <[email protected]> escreveu:
> Thanks for your reply. The content of the <style> tag now reads like:
>
> body {background-color:#4169E1;}
> body {color:#FFFFFF;}
> body {font-family:Verdana,Geneva,Arial,Helvetica,Sans-Serif;}
>
> Which produces the correct styling. What I had in mind was:
>
> body {background-color:#4169E1;color:#FFFFFF;font-
> family:Verdana,Geneva,Arial,Helvetica,Sans-Serif;}
>
> but I'll figure that out on a rainy Sunday afternoon.
>
>
> Kind regards,
> Annet.