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: 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; '>': 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: References: Date: Thu, 9 May 2013 09:40:09 +0100 Subject: Re: Anybody familiar with pygments ? From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: dabaichi 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --20cf3079be3c88cf1504dc44ff94 Content-Type: text/plain; charset=ISO-8859-1 On 9 May 2013 05:19, "dabaichi" 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 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. --20cf3079be3c88cf1504dc44ff94 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


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 fragmen= t 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=A0 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 (wit= h 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.

--20cf3079be3c88cf1504dc44ff94--