set_symbols_highlighting(false); $this->set_numbers_highlighting(false); } $language_data = array( 'LANG_NAME' => 'LaTeX', 'COMMENT_SINGLE' => array(1 => '%'), 'COMMENT_MULTI' => array(), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array(), 'ESCAPE_CHAR' => '', 'KEYWORDS' => array( ), 'SYMBOLS' => array( '.', ',','\\',"~", "{", "}", "[", "]", "$" ), 'CASE_SENSITIVE' => array( GESHI_COMMENTS => true, 1 => false, 2 => false, 3 => false, 4 => false, ), 'STYLES' => array( 'KEYWORDS' => array( ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR' => array( ), 'BRACKETS' => array( ), 'STRINGS' => array( ), 'NUMBERS' => array( ), 'METHODS' => array( ), 'SYMBOLS' => array( ), 'REGEXPS' => array( 1 => 'color: #00A000; font-weight: bold;', // Math inner 2 => 'color: #800000; font-weight: normal;', // \keyword #202020 3 => 'color: #2222D0; font-weight: normal;', // {...} 4 => 'color: #2222D0; font-weight: normal;', // [Option] 5 => 'color: #00A000; font-weight: normal;', // Mathe #CCF020 6 => 'color: #F00000; font-weight: normal;', // Structure \begin 7 => 'color: #F00000; font-weight: normal;', // Structure \end 8 => 'color: #F00000; font-weight: normal;', // Structure: Labels //9 => 'color: #F00000; font-weight: normal;', // Structure 10 => 'color: #0000D0; font-weight: bold;', // Environment 11 => 'color: #0000D0; font-weight: bold;', // Environment ), 'SCRIPT' => array( ) ), 'URLS' => array( ), 'OOLANG' => false, 'OBJECT_SPLITTERS' => array( ), 'REGEXPS' => array( // Math inner 1 => array( GESHI_SEARCH => "(\\\\begin\\{)(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|alignat|flalign )(\\})(.*)(\\\\end\\{)(equation|displaymath|eqnarray|subeqnarray|math|multline|gather|align|alignat|flalign)(\\})", GESHI_REPLACE => '\\4', GESHI_MODIFIERS => 's', GESHI_BEFORE => '\1\2\3', GESHI_AFTER => '\5\6\7' ), // \keywords 2 => array( GESHI_SEARCH => "(\\\\)([a-zA-Z]+)", GESHI_REPLACE => '\1\2', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '' ), // {parameters} 3 => array( GESHI_SEARCH => "(\\{)(.*)(\\})", GESHI_REPLACE => '\2', GESHI_MODIFIERS => 'U', GESHI_BEFORE => '\1', GESHI_AFTER => '\3' ), // [Option] 4 => array( GESHI_SEARCH => "(\[)(.+)(\])", GESHI_REPLACE => '\2', GESHI_MODIFIERS => 'U', GESHI_BEFORE => '\1', GESHI_AFTER => '\3' ), // Mathe mit $ ... $ 5 => array( GESHI_SEARCH => "(\\$)(.+)(\\$)", GESHI_REPLACE => '\1\2\3', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '' ), // Structure begin 6 => array( GESHI_SEARCH => "(\\\\begin)(?=[^a-zA-Z])", GESHI_REPLACE => '\\1', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '\\2' ), // Structure end 7 => array( GESHI_SEARCH => "(\\\\end)(?=[^a-zA-Z])", GESHI_REPLACE => '\\1', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '\\2' ), //Structure: Label 8 => array( GESHI_SEARCH => "(\\\\)(label|pageref|ref|cite)(?=[^a-zA-Z])", GESHI_REPLACE => '\\1\\2', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '\\3' ), // Structure: sections /*9 => array( GESHI_SEARCH => "(\\\\)(part|chapter|section|subsection|subsubsection|paragraph|subparagraph)(?=[^a-zA-Z])", GESHI_REPLACE => '\1\\2', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '\\3' ),*/ // environment begin 10 => array( GESHI_SEARCH => "(\\\\begin)(\\{)(.*)(\\})", GESHI_REPLACE => '\\3', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '' ), // environment end 11 => array( GESHI_SEARCH => "(\\\\end)(\\{)(.*)(\\})", GESHI_REPLACE => '\\3', GESHI_MODIFIERS => '', GESHI_BEFORE => '', GESHI_AFTER => '' ), // --------------------------------------------- ), 'STRICT_MODE_APPLIES' => GESHI_NEVER, 'SCRIPT_DELIMITERS' => array( ), 'HIGHLIGHT_STRICT_BLOCK' => array( ) );