[Zope] Python code beautifier

Florent Guillaume fg@nuxeo.com
Tue, 23 Jul 2002 11:23:26 +0000 (UTC)


Milos Prudek  <milos.prudek@tiscali.cz> wrote:
> Martin Gebert wrote:
> > Hi together!
> > 
> > The GNU tool source-highlight, a code beautifier by Lorenzo Bettini that
> > produces syntax highlighted HTML and XHTML documents from source code,
> > now recognizes Python, too. You can get it here:
> > 
> > http://www.gnu.org/software/src-highlite/
> 
> As a batch tool it would be useful. But if you use 'gvim' (graphical 
> frontend for vim), you don't need this. You can just edit the file, and 
> click Syntax - Convert to HTML. Gvim will automatically create a new 
> color-highlighted HTML file from the currently edited file. Gvim 
> supports syntax highlighting for over 100 languages, Python included.

In emacs, use htmlize-buffer to do that. It's in 'htmlize.el', in
package emacs-goodies-el in Debian.

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com