Syntax highligting

Lars Hjemli hjemli at
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> wrote:
> For some reason, I can't get syntax highlighting to work.
> I used the filter
> from:
> The script works perfectly with:
> cat /usr/local/www/cgit/syntax-highlighting |
> /usr/local/www/cgit/syntax-highlighting
> However the filter is not used in cgit frontend.
> 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.


More information about the CGit mailing list