List for cgit developers and users
 help / color / mirror / Atom feed
* Syntax highligting
       [not found] <AANLkTiksC7Mh-okTZ0h49FU-6qU+D3C531-coLjKdCZx@mail.gmail.com>
@ 2011-03-26 13:02 ` hjemli
  0 siblings, 0 replies; only message in thread
From: hjemli @ 2011-03-26 13:02 UTC (permalink / raw)


[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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-26 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTiksC7Mh-okTZ0h49FU-6qU+D3C531-coLjKdCZx@mail.gmail.com>
2011-03-26 13:02 ` Syntax highligting hjemli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).