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


Groups > comp.lang.python.announce > #567

[ANN] Updated pygments.appspot.com

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <news@google.com>
X-Original-To python-announce@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; '"as': 0.07; 'installed.': 0.07; 'kind,': 0.07; 'subject:ANN': 0.07; 'python': 0.09; 'damages': 0.09; 'fork': 0.09; 'granted,': 0.09; 'highlighting': 0.09; 'lang': 0.09; 'puts': 0.09; 'url:github': 0.09; 'api': 0.10; 'later': 0.10; 'fitness': 0.14; 'permission': 0.14; 'app': 0.15; '1.2.': 0.16; 'also:': 0.16; 'holders': 0.16; 'implied,': 0.16; 'is",': 0.16; 'liability,': 0.16; 'portions': 0.16; 'pygments': 0.16; 'subdomain': 0.16; 'supported:': 0.16; 'tort': 0.16; 'url:appspot': 0.16; 'url:css': 0.16; '(the': 0.16; 'library,': 0.17; 'options.': 0.17; 'this:': 0.17; 'url:default': 0.17; 'runs': 0.18; 'example': 0.19; 'versions': 0.21; 'contract,': 0.21; 'liable': 0.21; 'warranties': 0.21; 'subject:] ': 0.22; 'software.': 0.22; 'arising': 0.23; 'otherwise,': 0.23; 'parameters': 0.23; 'code.': 0.23; 'run': 0.25; 'header:User- Agent:1': 0.26; 'post': 0.27; '1.4': 0.28; 'though.': 0.28; 'source': 0.29; 'header:X-Complaints-To:1': 0.29; 'included': 0.29; "skip:' 10": 0.29; 'updated': 0.30; 'connection': 0.31; 'point': 0.31; 'received:209.85': 0.32; 'client': 0.32; 'received:google.com': 0.32; 'authors': 0.32; 'like,': 0.32; 'code': 0.32; 'could': 0.32; 'running': 0.33; 'received:209.85.214': 0.33; 'received:prod.google.com': 0.33; 'received:10.192': 0.34; 'software,': 0.34; 'so,': 0.34; 'css': 0.34; 'limitation': 0.34; 'version': 0.34; 'received:209': 0.35; 'skip:{ 10': 0.35; 'url:org': 0.35; '(c)': 0.36; 'usage': 0.36; 'subject:[': 0.36; 'similar': 0.36; 'store': 0.37; 'application': 0.37; 'but': 0.37; 'use,': 0.38; 'whom': 0.38; 'notice': 0.38; 'issues': 0.38; 'google': 0.39; 'provide': 0.60; 'free': 0.61; 'information': 0.61; 'visit': 0.62; 'license': 0.62; "you'll": 0.63; 'more': 0.63; 'skip:n 10': 0.63; 'convenience.': 0.65; 'obtaining': 0.65; 'subject': 0.66; 'receive': 0.69; 'to:addr :comp-lang-python-announce': 0.69; 'url:me': 0.72; 'to:addr:moderators.isc.org': 0.78; 'furnished': 0.84; 'subject:skip:p 20': 0.84; 'trevor': 0.84; 'url:master': 0.84; 'scott': 0.93
Delivered-To comp-lang-python-announce@moderators.isc.org
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :content-type:x-trace:x-complaints-to:nntp-posting-date :complaints-to:injection-info:user-agent:x-http-useragent :x-gm-message-state; bh=bR8Nl4ng+4l+HYR4Ad5UHdhV9Ay/UdQgdJ4j1JTRQnY=; b=D1o+D/aq9nnZKs1GSpb8a/U8trypFFa5TmPpoYz8leVzoMBhj7tRkKg/ZyayHwEmR3 Rc8Bu/cwgRfnKEeyx3xTLca8GwbcUcnvZVkKkvQ3u02l+TfXUggwwdleM89Jpa0klGCS fFlAzihKK7l8deaFZa/E3FZ7ENttAHgSCqM2EhWcRM84ZqUV4N1aVdFqbWMKTq+xF6tP kLIbwvDnYiJNndZjqMGQgd4r7TKFB8COba3cBtJ8oe+ZXUsg/WlO2qklR/OLI93EPnhE igpfngEVUeRlRbdKjtUEcYZ2rEP5l1JN5UmfmTouoSaTKPxEBey1xJEq7WBci4yayfOI LnvQ==
X-Authentication-Warning yws13.prod.google.com: news set sender to news@google.com using -f
To comp-lang-python-announce@moderators.isc.org
From zzak <zachary@zacharyscott.net>
Newsgroups comp.lang.python.announce
Subject [ANN] Updated pygments.appspot.com
Date Sat, 31 Mar 2012 14:42:50 -0700 (PDT)
Organization http://groups.google.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Complaints-To groups-abuse@google.com
Injection-Info l3g2000vbv.googlegroups.com; posting-host=24.128.116.245; posting-account=sl-F7woAAADxvNCcuJLSsYEtEcKr6gCH
User-Agent G2/1.0
X-HTTP-UserAgent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.04 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1, gzip(gfe)
X-Gm-Message-State ALoCoQlLkCARv88mgKrN/VRvE1ys6YxOggJXxfQoY0PbtrN8F4nAiVNcHaezX5LYhXTAy8LTXjnCGmVdwTvFWrOu6Y+EO7IQDhT4eGc0IwdcF/bbq2AnRRbTvS0vdYbrE8hs7KCfySw4XuAo8d/7rsbm5BTtnYHlmskKCh+9mMANFg2lnERazXc=
X-Mailman-Approved-At Mon, 02 Apr 2012 04:54:58 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Message-ID <mailman.1191.1333335299.3037.python-announce-list@python.org> (permalink)
Lines 83
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1333335299 news.xs4all.nl 6897 [2001:888:2000:d::a6]:36466
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:567

Show key headers only | View raw


== An update to pygments.appspot.com

http://pygments.appspot.com is an unofficial API for the Pygments
syntax highlighting library, which now runs version 1.5.
It's designed to provide syntax highlighting for web applications that
don't have Python installed.

== Usage

POST to http://pygments.appspot.com with "lang" and "code" parameters
in the body.
You'll receive pygmentized HTML back, which you can store for later
display on your site.
You can style the pygmentized HTML using CSS like this:
http://github.com/trevorturk/pygments/blob/master/default.css

== Ruby Example

$ irb

require 'net/http'
require 'uri'

lang = 'python'
code = 'print "Hello World"'

request = Net::HTTP.post_form(URI.parse('http://
pygments.appspot.com/'),
                              {'lang'=>lang, 'code'=>code})
puts request.body

== Compatibility

If your client has issues running an updated version of Pygments,
archived releases have been uploaded for your convenience.
Simply point the subdomain to the target version of Pygments, like so:
http://1-2.pygments.appspot.com/ is configured to run Pygments version
1.2.
The following versions are currently supported: 1.2, 1.3, 1.4 and 1.5

== More Information

This site was created so that http://flowcoder.com could run on
http://heroku.com, but please feel free to use it yourself.
If you like, you can fork the code on github and create your own
Google App Engine site, though.

Visit http://pygments.org/ for more information about Pygments.
Visit http://github.com/richleland/pygments-css for more example CSS
files for use with Pygments.
Visit http://github.com/trevorturk/pygments for more information about
this site, and to see the source code.

See also: http://www.hilite.me/ for a similar application with more
options.

== MIT License

Copyright (c) 2009-2012

Trevor Turk
Zachary Scott

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

[ANN] Updated pygments.appspot.com zzak <zachary@zacharyscott.net> - 2012-03-31 14:42 -0700

csiph-web