Lexer->addEntryPattern('\]*\>',$mode,'plugin_dirtylittlehelper_'.$this->getPluginComponent()); } public function postConnect() { $this->Lexer->addExitPattern('\<\/dlh\.table\.html\>','plugin_dirtylittlehelper_'.$this->getPluginComponent()); } /** * Handle matches of the DLH syntax * * @param string $match The match of the syntax * @param int $state The state of the handler * @param int $pos The position in the document * @param Doku_Handler $handler The handler * * @return array Data for the renderer */ public function handle($match, $state, $pos, Doku_Handler $handler) { switch ($state) { case DOKU_LEXER_ENTER: if( substr($match,0,3) =='doc .= str_replace('doc .= ""; return true; }elseif($data[1]=='UNMATCHED'){ $renderer->doc .= $data[2]; return true; } return false; } //mode xhtml return false; } //function render } //class