# HG changeset patch # User Adam Hupp # Date 1194735297 18000 # Node ID 40a06e39f010989fb6d53df6e566485d7d9bc75e # Parent a3fe91b4f6ebb8f6c276f5010e9243750e3fcf34 extension for synax highlighting in the hgweb file revision view Depends on the pygments syntax highlighting library: http://pygments.org/ diff -r a3fe91b4f6eb -r 40a06e39f010 hgext/highlight.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgext/highlight.py Sat Nov 10 17:54:57 2007 -0500 @@ -0,0 +1,153 @@ +""" +This is Mercurial extension for syntax highlighting in the file +revision view of hgweb. + +It depends on the pygments syntax highlighting library: +http://pygments.org/ + +To enable the extension add this to hgrc: + +[extensions] +hgext.highlight = + +There is a single configuration option: + +[web] +pygments_style =