Anybody familiar with pygments ?

Fábio Santos fabiosantosart at gmail.com
Thu May 9 04:40:09 EDT 2013


On 9 May 2013 05:19, "dabaichi" <valbendan at outlook.com> wrote:
>
> And hereis the output file:

That's not the output file. That is just an HTML fragment to put on your
page. A full HTML file will need more things, which is the reason why you
don't see color output.

> I want to know why output html file with no color ?

Because there is no CSS. The output  has a lot of <span> tags with classes.
You are supposed to use a CSS file along with it.

So, first put that output into a complete HTML document (with a head, a
body...) And in that document add or link to your CSS file with the color
information. I never used pygments but there may be some readily available.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130509/8631c12b/attachment.html>


More information about the Python-list mailing list