E-Scribe News : a programmer’s blog

About Me

PBX My name is Paul Bissex, and e-scribe.com is my consulting business. I build web applications using as much open source software as possible. From September to June I teach web design and other important non-photographic professional skills to photographers. In the '90s I wrote technology commentary and reviews for magazines, newspapers, and web publications, including Wired, Salon.com, FamilyPC, the late lamented Web Review, and the Chicago Tribune. Feel free to email me.

Book Project

I'm co-authoring a book, "Python Web Development with Django", with Jeff Forcier and Wesley Chun. It will be published by Prentice Hall in July 2008, but is available for pre-ordering on Amazon now.

Colophon

This site is built on a fresh trunk checkout of Django, running on Python 2.5.1, served by Apache and mod_python. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive.

Pile o'Tags

Stuff I Use

Akismet, del.icio.us, Django, dpaste.com, Emacs, FreeBSD, Freenode, jQuery, LaunchBar, MacPorts, Markdown, Mercurial, OS X, Postfix, Python, SQLite, Subversion, TextMate, Trac, Ubuntu Linux, wmii

A Django site.
(Finally!)

Copyright 2008
by Paul Bissex
and E-Scribe New Media

Pastebin update: Pygments

This past spring I posted about a simple pastebin app I wrote using Django. This week I updated it to use the excellent Pygments syntax-coloring library (formerly known as Pykleur).

Pygments has support for a healthy number of languages/syntaxes, offers a great deal of flexibility, ships with several different color schemes, and can produce output in HTML/CSS, LaTEX, or ANSI terminal colors. I created a "pcat" alias to take advantage of that last one when working in the shell.

It would have been trivial for the Pygments team to put together their own pastebin (in fact, that's effectively what their demo is), but they were very helpful with a couple questions I had while rolling this out.

Update: As of a few days ago, the Pygments/Pocoo folks do now have their own pastebin, which shows off the full complement of language/syntax options (I only use a small subset because of my focus on Python

I added an "about" page to the site that explains some of the details. (I even included Ruby support!) That URL again:

http://paste.e-scribe.com/

Friday, October 20th, 2006
+ + +
1 comment

Comment from Benoit, later that day

Hi I create my own pastebin app using your old code with generic view. I create view, added rss é put pygments. You can view it here : http://archlinuxfr.org/paste/

Code is available here : http://projet.archlinuxfr.org/svn/trunk/archlinux/

Hope it could hel you :) And thanks to published your code :)

  • Benoît

Post a comment

Comments use Markdown syntax. Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.


(Will not be shared)

(Optional)