123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <?php
-
-
- if (isset($this) && is_a($this, 'GeSHi')) {
- $this->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;',
- 2 => 'color: #800000; font-weight: normal;',
- 3 => 'color: #2222D0; font-weight: normal;',
- 4 => 'color: #2222D0; font-weight: normal;',
- 5 => 'color: #00A000; font-weight: normal;',
- 6 => 'color: #F00000; font-weight: normal;',
- 7 => 'color: #F00000; font-weight: normal;',
- 8 => 'color: #F00000; font-weight: normal;',
-
- 10 => 'color: #0000D0; font-weight: bold;',
- 11 => 'color: #0000D0; font-weight: bold;',
- ),
- 'SCRIPT' => array(
- )
- ),
- 'URLS' => array(
- ),
- 'OOLANG' => false,
- 'OBJECT_SPLITTERS' => array(
- ),
- 'REGEXPS' => array(
-
- 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'
- ),
-
- 2 => array(
- GESHI_SEARCH => "(\\\\)([a-zA-Z]+)",
- GESHI_REPLACE => '\1\2',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => ''
- ),
-
- 3 => array(
- GESHI_SEARCH => "(\\{)(.*)(\\})",
- GESHI_REPLACE => '\2',
- GESHI_MODIFIERS => 'U',
- GESHI_BEFORE => '\1',
- GESHI_AFTER => '\3'
- ),
-
- 4 => array(
- GESHI_SEARCH => "(\[)(.+)(\])",
- GESHI_REPLACE => '\2',
- GESHI_MODIFIERS => 'U',
- GESHI_BEFORE => '\1',
- GESHI_AFTER => '\3'
- ),
-
- 5 => array(
- GESHI_SEARCH => "(\\$)(.+)(\\$)",
- GESHI_REPLACE => '\1\2\3',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => ''
- ),
-
- 6 => array(
- GESHI_SEARCH => "(\\\\begin)(?=[^a-zA-Z])",
- GESHI_REPLACE => '\\1',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => '\\2'
- ),
-
- 7 => array(
- GESHI_SEARCH => "(\\\\end)(?=[^a-zA-Z])",
- GESHI_REPLACE => '\\1',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => '\\2'
- ),
-
- 8 => array(
- GESHI_SEARCH => "(\\\\)(label|pageref|ref|cite)(?=[^a-zA-Z])",
- GESHI_REPLACE => '\\1\\2',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => '\\3'
- ),
-
-
-
- 10 => array(
- GESHI_SEARCH => "(\\\\begin)(\\{)(.*)(\\})",
- GESHI_REPLACE => '\\3',
- GESHI_MODIFIERS => '',
- GESHI_BEFORE => '',
- GESHI_AFTER => ''
- ),
-
- 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(
- )
- );
-
- ?>
|