aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-05-23 00:09:14 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-05-23 00:09:14 -0400
commitcdd1b58b386da575f3c73ab94ae72e5e66be797b (patch)
tree5c5b21d58eef656797303103106be1a50436602b
parent21d6aded47d306fb44a60c1a8ad9331933cac855 (diff)
downloadikiwiki-cdd1b58b386da575f3c73ab94ae72e5e66be797b.tar
ikiwiki-cdd1b58b386da575f3c73ab94ae72e5e66be797b.tar.gz
remove commas in tohighlight list
-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