Lexer->addEntryPattern('\',$mode,'plugin_dirtylittlehelper_'.$this->getPluginComponent()); } public function postConnect() { $this->Lexer->addExitPattern('\<\/dlh\.\*\>','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) ==' do nothing if($data[1]=='BEGIN'){ return true; }elseif($data[1]=='/END'){ return true; }elseif($data[1]=='UNMATCHED'){ return true; } return false; } //mode xhtml return false; } //function render } //class