[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: Syntax highligting
From: hjemli () gmail ! com (Lars Hjemli)
Date: 2011-03-26 13:02:27
Message-ID: AANLkTimDSVKsHObLpdVFoVQKU-F+E3ZVxzs2k38JDLCL () mail ! gmail ! com
[Download RAW message or body]
[added cgit list to CC]
On Thu, Mar 17, 2011 at 11:56, Hans Duedal <hd at onlinecity.dk> wrote:
> For some reason, I can't get syntax highlighting to work.
> I used the filter
> from:?http://hjemli.net/git/cgit/tree/filters/syntax-highlighting.sh
> The script works perfectly with:
> cat /usr/local/www/cgit/syntax-highlighting |
> /usr/local/www/cgit/syntax-highlighting syntax.sh
> However the filter is not used in cgit frontend.
[..snip..]
> My cgitrc contains:
> scan-path=/var/git/
> source-filter=/usr/local/www/cgit/syntax-highlighting
> That's all.
The problem here is that you specify scan-path _before_ source-filter.
The scan-path option triggers the repository scanning when read, i.e.
any default options you'd like to specify for repositories found by
scan-path must be specified prior to specifying scan-path.
--
larsh
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic