Syntax highligting
Lars Hjemli
hjemli at gmail.com
Sat Mar 26 14:02:27 CET 2011
[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
More information about the CGit
mailing list