Lexer->addSpecialPattern('\{\{QRCODESCANNER\}\}',$mode,'plugin_qrcodescanner'); } public function handle($match, $state, $pos, Doku_Handler $handler) { return array($match, $state, $pos); } public function render($mode, Doku_Renderer $renderer, $data) { // $data is what the function handle return'ed. if($mode == 'xhtml'){ /** @var Doku_Renderer_xhtml $renderer */ $renderer->doc .= '
'; $renderer->doc .= ''; $renderer->doc .= ''; return true; } return false; } }