Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2003 09:46:25 -0000
From:      Stefan Moessler <moessler@getemed.de>
To:        freebsd-cvsweb@FreeBSD.org
Subject:   highlighting PERL code with enscript
Message-ID:  <oprxb5d0b82o7zqs@localhost>

next in thread | raw e-mail | index | archive | help
Hi,

i'm using cvsweb-2.9.1 with cygwin+apache2. Highlighting does not work for 
filenames ending with *.pl . I think there is a problem with the regex for 
filename matching of perl-programs in cvsweb.conf ($FreeBSD: 
projects/cvsweb/cvsweb.conf,v 1.62 2003/10/09 20:14:11 scop Exp $). The 
actual line in cvsweb.conf(596) is:

%enscript_types =
	...
    'perl'         => qr/\.p(m|(er?)l)$/io,
	...
);

i changed this line into

    'perl'         => qr/\.(pl|pm|cgi)$/io,

and now it woks!

--

stefan moessler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?oprxb5d0b82o7zqs>