[added cgit list to CC] On Thu, Mar 17, 2011 at 11:56, Hans Duedal <[email protected]> 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 _______________________________________________ cgit mailing list [email protected] http://hjemli.net/mailman/listinfo/cgit
