Differences between revisions 2 and 3
Revision 2 as of 2008-07-24 08:41:09
Size: 506
Editor: BenoitAllard
Comment: this extension is now in the hgext directory
Revision 3 as of 2008-09-03 02:00:53
Size: 760
Editor: JustinRovang
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:

=== Changing the highlighting css ===
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 [http://pygments.org/ Pygments] installed.

Configuration

Configure your .hgrc to change the Pygments style:

[extensions]
hgext.highlight=

[web]
pygments_style = <style>

Changing the highlighting css

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)