Lines Matching defs:language
623 * @param string $language programming language to use for syntax highlighting
627 public function file($text, $language = null, $filename = null, $options = null)
629 $this->_highlight('file', $text, $language, $filename, $options);
636 * @param string $language programming language to use for syntax highlighting
640 public function code($text, $language = null, $filename = null, $options = null)
642 $this->_highlight('code', $text, $language, $filename, $options);
646 * Use GeSHi to highlight language syntax in code and file blocks
650 * @param string $language programming language to use for syntax highlighting
655 public function _highlight($type, $text, $language = null, $filename = null, $options = null)
661 $language = preg_replace(PREG_PATTERN_VALID_LANGUAGE, '', $language ?? '');
691 if (empty($language)) { // empty is faster than is_null and can prevent '' string
697 $this->doc .= "<pre class=\"$class $language\">" .
698 p_xhtml_cached_geshi($text, $language, '', $options) .
778 * Render an opening single quote char (language specific)
787 * Render a closing single quote char (language specific)
796 * Render an apostrophe char (language specific)
805 * Render an opening double quote char (language specific)
814 * Render an closinging double quote char (language specific)