Differences between revisions 6 and 7
Revision 6 as of 2009-11-21 21:22:41
Size: 838
Comment: pygmentize not needed for Mercurial 1.1 and above
Revision 7 as of 2010-08-28 15:10:54
Size: 843
Editor: abuehl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 35: Line 35:
Line 37: Line 36:
CategoryExtension CategoryBundledExtension

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

Mercurial 1.1 and above no longer needs this:

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 


CategoryBundledExtension

HighlightExtension (last edited 2017-01-02 10:35:57 by AntonShestakov)