Lines Matching defs:text
156 // check its not a placeholder that indicates actual footnote text is elsewhere
199 * @param string $text the text to display
202 public function toc_additem($id, $text, $level)
208 $this->toc[] = html_mktocitem($id, $text, $level - $conf['toptoclevel'] + 1);
215 * @param string $text the text to display
221 public function header($text, $level, $pos, $returnonly = false)
225 if (blank($text)) return; //skip empty headlines
227 $hid = $this->_headerToLink($text, true);
230 $this->toc_additem($hid, $text, $level);
254 $data['name'] = $text;
260 $header .= $this->_xmlEntities($text);
289 * Render plain text data
291 * @param $text
293 public function cdata($text)
295 $this->doc .= $this->_xmlEntities($text);
582 * Output unformatted $text
586 * @param string $text
588 public function unformatted($text)
590 $this->doc .= $this->_xmlEntities($text);
610 * Output preformatted text
612 * @param string $text
614 public function preformatted($text)
616 $this->doc .= '<pre class="code">' . trim($this->_xmlEntities($text), "\n\r") . '</pre>' . DOKU_LF;
620 * Display text as file content, optionally syntax highlighted
622 * @param string $text text to show
627 public function file($text, $language = null, $filename = null, $options = null)
629 $this->_highlight('file', $text, $language, $filename, $options);
633 * Display text as code content, optionally syntax highlighted
635 * @param string $text text to show
640 public function code($text, $language = null, $filename = null, $options = null)
642 $this->_highlight('code', $text, $language, $filename, $options);
649 * @param string $text text to show
655 public function _highlight($type, $text, $language = null, $filename = null, $options = null)
684 if (str_starts_with($text, "\n")) {
685 $text = substr($text, 1);
687 if (str_ends_with($text, "\n")) {
688 $text = substr($text, 0, -1);
692 $this->doc .= '<pre class="' . $type . '">' . $this->_xmlEntities($text) . '</pre>' . DOKU_LF;
698 p_xhtml_cached_geshi($text, $language, '', $options) .
749 * Entities are basically small text replacements
1176 * @param string $title descriptive text
1261 * @param string $title descriptive text
1662 * @param string $title descriptive text
1813 * @return string HTML of the title, might be full image tag or just escaped text
1869 * @param string $title descriptive text