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


Groups > comp.lang.python > #45020

Re: Anybody familiar with pygments ?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.047
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'output': 0.05; 'classes.': 0.09; 'things,': 0.09; 'cc:addr:python-list': 0.11; 'pygments': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'css': 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'page.': 0.31; 'css.': 0.31; 'file:': 0.31; 'file': 0.32; 'supposed': 0.32; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'so,': 0.37; 'skip:& 20': 0.39; 'color': 0.61; 'full': 0.61; 'first': 0.61; 'complete': 0.62; 'more': 0.64; 'fragment': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=AHcvCfwWhm39GHHN8Or/ADX3njGxlGCE3IbM/3iX1Ro=; b=XTdKT7q6/dapMZZsSmox7/7Y1dURFRIjTOqRSI1b+ma3C3nrSw9pNAizta7CkW7XsM AJGeQjGBYJG45ws8WjTNk+z+dtocS0Qjatg22gg7PYEiPq2vk+Z9GmWiu5r94xWR7iby 77xdVztg5UcxroMptblWxiGIZnqANOc779kvq2zBC/VOmE1C50SAF5NH980y5tfoLsdJ fOsVEkzAzil9OHzWndVF/YuFPGwy3i5TwtFt9ZMX+O5vPLg8yF/ELYPZMDLrkd7Az5of jlEwJjbSRA7BQlaIebo7uCuQuMTMm0h675TVML7YdHzv8OCzHVjibFz3H2O0tsMlMvN2 +Aeg==
MIME-Version 1.0
X-Received by 10.52.35.196 with SMTP id k4mr6096509vdj.77.1368088809875; Thu, 09 May 2013 01:40:09 -0700 (PDT)
In-Reply-To <kmf7cf$2e26$1@adenine.netfront.net>
References <kmf7cf$2e26$1@adenine.netfront.net>
Date Thu, 9 May 2013 09:40:09 +0100
Subject Re: Anybody familiar with pygments ?
From Fábio Santos <fabiosantosart@gmail.com>
To dabaichi <valbendan@outlook.com>
Content-Type multipart/alternative; boundary=20cf3079be3c88cf1504dc44ff94
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1489.1368088819.3114.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368088819 news.xs4all.nl 15982 [2001:888:2000:d::a6]:44344
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45020

Show key headers only | 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