Highlight Extension
This extension is currently being distributed along with Mercurial.
Original author: Adam Hupp
Overview
This extension does syntax highlighting in hgweb for files with known extensions.
The extension depends on having Pygments installed.
Configuration
Configure your .hgrc to change the Pygments style:
[extensions] hgext.highlight= [web] pygments_style = <style>
If you're having troubles with '''pygments_style''
A workaround to generate the appropriate theme CSS for your mercurial installation:
$ pygmentize -f html -S emacs > /usr/local/lib/python2.4/site-packages/mercurial/templates/static/highlight.css