Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45020

Re: Anybody familiar with pygments ?

References <kmf7cf$2e26$1@adenine.netfront.net>
Date 2013-05-09 09:40 +0100
Subject Re: Anybody familiar with pygments ?
From Fábio Santos <fabiosantosart@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1489.1368088819.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 9 May 2013 05:19, "dabaichi" <valbendan@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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Anybody familiar with pygments ? "dabaichi" <valbendan@outlook.com> - 2013-05-09 12:10 +0800
  Re: Anybody familiar with pygments ? Fábio Santos <fabiosantosart@gmail.com> - 2013-05-09 09:40 +0100
  Re: Anybody familiar with pygments ? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-05-10 17:24 +0200

csiph-web