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


Groups > comp.lang.python > #45107

Re: Anybody familiar with pygments ?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <kwpolska@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.036
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'output': 0.05; 'classes.': 0.09; 'things,': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gpg': 0.16; 'pygments': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'app': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'file.': 0.24; 'cc:no real name:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'css': 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'page.': 0.31; 'css.': 0.31; 'file:': 0.31; 'file': 0.32; 'supposed': 0.32; 'url:python': 0.33; 'running': 0.33; 'subject:with': 0.35; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'so,': 0.37; 'url:mail': 0.40; 'color': 0.61; 'full': 0.61; 'from:charset:utf-8': 0.61; 'first': 0.61; 'complete': 0.62; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'fragment': 0.84; 'off,': 0.84; 'url:tk': 0.95; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=gO7SCggiuuz6Ogjz4X7MTpavwdWcnthfdNzB2qCUVEQ=; b=JkXBbfa5VMlF2SgnmliVA9YN9/KzFPlQXbehiomG4OyAmAhGp5w5XVdYceogc4CQuO PXb5wP1keaW51v4SOA5NKK27RCVEu2YXdUiJdzCN/lyMeAUFcMVAdr3m2cWa/tt0ew+b FOVQdQqJryrquuI+R9f8nSbkCi1M4EBJ20f90u00jdi3atXujzVPRbqGEC6hngwQ/vtS Ep5GhGditK7Mh5LGQUJVsmceWfL1QTLbl2KVraojvn8xGK8+AKZix3PqAbRmRfxUTnrE LzTs6MQK0eKrswnVLJ8u85UTV9P3EKV2/HrlGpJqePzoUiGiGJXNqm/DH0inWpox0Wh5 lkpA==
X-Received by 10.50.108.70 with SMTP id hi6mr2397976igb.21.1368199470546; Fri, 10 May 2013 08:24:30 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAA=1kxT32Kj5mWZOCz3x9YLsPQjkb3=H1d+0p0t3Zq5f-OyHrw@mail.gmail.com>
References <kmf7cf$2e26$1@adenine.netfront.net> <CAA=1kxT32Kj5mWZOCz3x9YLsPQjkb3=H1d+0p0t3Zq5f-OyHrw@mail.gmail.com>
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Date Fri, 10 May 2013 17:24:10 +0200
Subject Re: Anybody familiar with pygments ?
To Fábio Santos <fabiosantosart@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org, dabaichi <valbendan@outlook.com>
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.1534.1368199473.3114.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368199473 news.xs4all.nl 16006 [2001:888:2000:d::a6]:53439
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45107

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