Lines Matching refs:text
43 function header($text, $level, $pos) { argument
45 if(!$text) return; //skip empty headlines
49 $this->doc .= "$markup $text $markup".DOKU_LF;
63 function cdata($text) { argument
64 if(strlen($text) === 0) {
79 $this->doc .= $text;
250 function unformatted($text) { argument
252 if(strpos($text, '%%') !== false) {
253 $this->doc .= "<nowiki>$text</nowiki>";
254 } elseif($text[0] == "\n") {
255 $this->doc .= "<nowiki>$text</nowiki>";
257 $this->doc .= "%%$text%%";
261 function php($text, $wrapper = 'code') { argument
263 $this->doc .= "<php>$text</php>";
266 function phpblock($text) { argument
268 $this->doc .= "<PHP>$text</PHP>";
271 function html($text, $wrapper = 'code') { argument
273 $this->doc .= "<html>$text</html>";
276 function htmlblock($text) { argument
278 $this->doc .= "<HTML>$text</HTML>";
300 function preformatted($text) { argument
302 $this->doc .= preg_replace('/^/m', ' ', $text).DOKU_LF;
305 function file($text, $language = null, $filename = null) { argument
306 $this->_highlight('file', $text, $language, $filename);
309 function code($text, $language = null, $filename = null) { argument
310 $this->_highlight('code', $text, $language, $filename);
313 function _highlight($type, $text, $language = null, $filename = null) { argument
325 $this->doc .= $text;
326 if($text[0] == "\n") $this->doc .= "\n";