[Catalog-sig] Syntax highlighting for code examples on PyPI

Michael Foord fuzzyman at gmail.com
Sun Oct 17 23:26:27 CEST 2010

On 17 October 2010 18:44, "Martin v. Löwis" <martin at v.loewis.de> wrote:

> > Can I make a feature request for PyPI. Please allow syntax highlighting
> > for code examples using pygments and the rest code-block directive.
> Unfortunately, I don't even understand what the request means

I would like the Python code examples that appear on many PyPI summary pages
to be "syntax highlighted", such as you might have in any competent Python

Pygments is a (even "the") popular Python library for syntax highlighting of
*many* programming languages and it integrates very well with the
reStructured Text used in PyPI descriptions.


A few lines of code in PyPI hooking up Pygments into reStructured Text
(Pygments provides a ready made directive for this purpose) and including
the pygments css in PyPI pages would allow this.

All the best,

Michael Foord

> (I don't know what pygments is, for example), so I won't be able
> to do much about such a request.
> Regards,
> Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/catalog-sig/attachments/20101017/5ccdd0ae/attachment.html>

More information about the Catalog-SIG mailing list