(?=.*?
)';
$this->pattern[12] = '';
}
public function connectTo($mode)
{
if ($this->getConf('override_file')) $this->Lexer->addEntryPattern($this->pattern[1], $mode, $this->mode);
if ($this->getConf('override_code')) $this->Lexer->addEntryPattern($this->pattern[11], $mode, $this->mode);
}
public function postConnect()
{
if ($this->getConf('override_file')) $this->Lexer->addExitPattern($this->pattern[2], $this->mode);
if ($this->getConf('override_code')) $this->Lexer->addExitPattern($this->pattern[12], $this->mode);
}
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER:
$match = trim(substr($match, 5, -1)); //5 = strlen("_xmlEntities($match);
$renderer->doc .= '';
break;
case DOKU_LEXER_UNMATCHED:
$renderer->doc .= trim($renderer->_xmlEntities($match));
break;
case DOKU_LEXER_EXIT:
$renderer->doc .= '
';
break;
case DOKU_LEXER_MATCHED:
case DOKU_LEXER_SPECIAL:
break;
}
return true;
}
return false;
}
}
?>