Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2008-04-19 11:52:30
Size: 501
Comment: Add some information on the highlight extension.
Revision 5 as of 2009-05-19 19:31:03
Size: 783
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
The extension depends on having [http://pygments.org/ Pygments] installed. The extension depends on having [[http://pygments.org/|Pygments]] installed.
Line 19: Line 19:
highlight = hgext.highlight=
Line 25: Line 25:

=== 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
}}}

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 


CategoryExtension

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