projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd7db49
)
call initLanguage after initTheme
author
Joey Hess
<joey@gnu.kitenet.net>
Tue, 26 May 2009 21:04:49 +0000
(17:04 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Tue, 26 May 2009 21:04:49 +0000
(17:04 -0400)
See #530654
IkiWiki/Plugin/highlight.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/highlight.pm
b/IkiWiki/Plugin/highlight.pm
index 4c02f6c236e4feca4f6113e73f793bee683fef2c..20f79ef575189506fe5343d31950a3f1a57f961e 100644
(file)
--- a/
IkiWiki/Plugin/highlight.pm
+++ b/
IkiWiki/Plugin/highlight.pm
@@
-128,8
+128,8
@@
sub highlight ($$) {
$gen = highlightc::CodeGenerator_getInstance($highlightc::XHTML);
$gen->setFragmentCode(1); # generate html fragment
$gen->setHTMLEnclosePreTag(1); # include stylish <pre>
- $gen->initLanguage($langfile);
$gen->initTheme("/dev/null"); # theme is not needed because CSS is not emitted
+ $gen->initLanguage($langfile); # must come after initTheme
$gen->setEncoding("utf-8");
$highlighters{$langfile}=$gen;
}