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:
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