highlight: Ensure that other, more-specific format plugins, like txt are used in...
[ikiwiki.git] / IkiWiki / Plugin / highlight.pm
index 5674f0b4aa150557fbb75e76e208a284dd145288..872537c726c2f62500e836babc9bccd50a2e95fd 100644 (file)
@@ -10,8 +10,8 @@ sub import {
        hook(type => "getsetup", id => "highlight",  call => \&getsetup);
        hook(type => "checkconfig", id => "highlight", call => \&checkconfig);
        # this hook is used by the format plugin
-       hook(type => "htmlizeformat", id => "highlight", call =>
-               \&htmlizeformat);
+       hook(type => "htmlizeformat", id => "highlight", 
+               call => \&htmlizeformat, last => 1);
 }
 
 sub getsetup () {
@@ -74,6 +74,7 @@ sub checkconfig () {
                                },
                                longname => sprintf(gettext("Source code: %s"), $file),
                                @opts,
+                               last => 1,
                        );
                }
        }