aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/highlight.pm4
-rw-r--r--doc/plugins/highlight.mdwn2
2 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm
index f43f18628..117ab5898 100644
--- a/IkiWiki/Plugin/highlight.pm
+++ b/IkiWiki/Plugin/highlight.pm
@@ -23,7 +23,7 @@ sub getsetup () {
},
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,
@@ -32,7 +32,7 @@ sub getsetup () {
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);
diff --git a/doc/plugins/highlight.mdwn b/doc/plugins/highlight.mdwn
index 0cab8717b..5172af759 100644
--- a/doc/plugins/highlight.mdwn
+++ b/doc/plugins/highlight.mdwn
@@ -19,7 +19,7 @@ setup file to control which files should be syntax highlighted.
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