},
tohighlight => {
type => "string",
- example => ".c, .h, .cpp, .pl, .py, Makefile:make",
+ example => ".c .h .cpp .pl .py Makefile:make",
description => "source files to syntax highlight",
safe => 1,
rebuild => 1,
sub checkconfig () {
if (exists $config{tohighlight}) {
- foreach my $file (split /, /, $config{tohighlight}) {
+ foreach my $file (split ' ', $config{tohighlight}) {
my @opts = $file=~s/^\.// ?
(keepextension => 1) :
(noextension => 1);
Here is a typical setting for it, enabling highlighting for files
with the extensions .c, etc, and also for any files named "Makefile".
- tohighlight => .c, .h, .cpp, .pl, .py, Makefile:make",
+ tohighlight => ".c .h .cpp .pl .py Makefile:make",
It knows what language to use for most filename extensions (see
`/etc/highlight/filetypes.conf` for a partial list), but if you want to