Lexer->addSpecialPattern('~~USETHEME:\w+~~', $mode, 'plugin_usetheme'); } public function handle($match, $state, $pos, Doku_Handler $handler) { $match = substr($match, 11, -2); // cut match down to the template name return array(strtolower($match)); } public function render($format, Doku_Renderer $renderer, $data) { return ""; // show nothing, we want to change the template } }