class mw_observer_highlightjs extends mw_observer{
- function after_action(){
+ public function after_action(){
$env = $this->env();
if($env->is_running("pages/view")){
$env->add_js_file($env->out_url("js/highlight.pack.js"));
}
}
-
-?>
\ No newline at end of file
class mw_highlightjs extends mw_plugin{
- function title(){
+ public function title(){
return "highlight.js";
}
- function description(){
+ public function description(){
return "Coloration syntaxique pour le plugin mw_pages";
}
}
-
-?>
\ No newline at end of file