Lines Matching refs:language
622 * @param string $language programming language to use for syntax highlighting
626 public function file($text, $language = null, $filename = null, $options = null)
628 $this->_highlight('file', $text, $language, $filename, $options);
635 * @param string $language programming language to use for syntax highlighting
639 public function code($text, $language = null, $filename = null, $options = null)
641 $this->_highlight('code', $text, $language, $filename, $options);
645 * Use GeSHi to highlight language syntax in code and file blocks
649 * @param string $language programming language to use for syntax highlighting
654 public function _highlight($type, $text, $language = null, $filename = null, $options = null)
660 $language = preg_replace(PREG_PATTERN_VALID_LANGUAGE, '', $language ?? '');
690 if (empty($language)) { // empty is faster than is_null and can prevent '' string
696 $this->doc .= "<pre class=\"$class $language\">" .
697 p_xhtml_cached_geshi($text, $language, '', $options) .
777 * Render an opening single quote char (language specific)
786 * Render a closing single quote char (language specific)
795 * Render an apostrophe char (language specific)
804 * Render an opening double quote char (language specific)
813 * Render an closinging double quote char (language specific)