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


Groups > comp.lang.python > #45107

Re: Anybody familiar with pygments ?

References <kmf7cf$2e26$1@adenine.netfront.net> <CAA=1kxT32Kj5mWZOCz3x9YLsPQjkb3=H1d+0p0t3Zq5f-OyHrw@mail.gmail.com>
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Date 2013-05-10 17:24 +0200
Subject Re: Anybody familiar with pygments ?
Newsgroups comp.lang.python
Message-ID <mailman.1534.1368199473.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, May 9, 2013 at 10:40 AM, Fábio Santos <fabiosantosart@gmail.com> wrote:
>
> 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.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

First off, the Python code was unnecessary in this case, because it
would be cheaper to use the pygmentize app included.

Second off, CSS is available at
https://github.com/richleland/pygments-css or by running `pygmentize
-f html -O full FILE`.

--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html

Back to comp.lang.python | Previous | NextPrevious 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