plugins/geshi/geshi/latex.php
changeset 3 f3e2bbbd2155
parent 2 9e3258dfae15
--- a/plugins/geshi/geshi/latex.php	Fri May 29 19:30:59 2009 -0400
+++ b/plugins/geshi/geshi/latex.php	Fri May 29 19:40:15 2009 -0400
@@ -4,7 +4,7 @@
  * -----
  * Author: efi, Matthias Pospiech (matthias@pospiech.eu)
  * Copyright: (c) 2006 efi, Matthias Pospiech (matthias@pospiech.eu), Nigel McNie (http://qbnz.com/highlighter)
- * Release Version: 1.0.8.2
+ * Release Version: 1.0.8.4
  * Date Started: 2006/09/23
  *
  * LaTeX language file for GeSHi.
@@ -60,15 +60,35 @@
     'QUOTEMARKS' => array(),
     'ESCAPE_CHAR' => '',
     'KEYWORDS' => array(
+        1 => array(
+            'addlinespace','address','appendix','author','backmatter',
+            'bfseries','bibitem','bigskip','blindtext','caption','captionabove',
+            'captionbelow','cdot','centering','cite','color','colorbox','date',
+            'def','definecolor','documentclass','edef','eqref','else','email','emph','fbox',
+            'fi','flushleft','flushright','footnote','frac','frontmatter','graphicspath','hfill',
+            'hline','hspace','huge','include','includegraphics','infty','input','int','ifx',
+            'item','label','LaTeX','left','let','limits','listfiles','listoffigures',
+            'listoftables','mainmatter','makeatletter','makeatother','makebox',
+            'makeindex','maketitle','mbox','mediumskip','newcommand',
+            'newenvironment','newpage','nocite','nonumber','pagestyle','par','paragraph','parbox',
+            'parident','parskip','partial','raggedleft','raggedright','raisebox','ref',
+            'renewcommand','renewenvironment','right','rule','section','setlength',
+            'sffamily','subparagraph','subsection','subsubsection','sum','table',
+            'tableofcontents','textbf','textcolor','textit','textnormal',
+            'textsuperscript','texttt','title','today','ttfamily','urlstyle',
+            'usepackage','vspace'
+            )
         ),
     'SYMBOLS' => array(
         "&", "\\", "{", "}", "[", "]"
         ),
     'CASE_SENSITIVE' => array(
+        1 => true,
         GESHI_COMMENTS => false,
         ),
     'STYLES' => array(
         'KEYWORDS' => array(
+            1 => 'color: #800000;',
             ),
         'COMMENTS' => array(
             1 => 'color: #2C922C; font-style: italic;'
@@ -86,7 +106,7 @@
         'METHODS' => array(
             ),
         'SYMBOLS' => array(
-            0 =>  'color: #0000D0; '
+            0 =>  'color: #E02020; '
             ),
         'REGEXPS' => array(
             1 => 'color: #8020E0; font-weight: normal;',  // Math inner
@@ -106,6 +126,7 @@
             )
         ),
     'URLS' => array(
+        1 => 'http://www.golatex.de/wiki/index.php?title=%5C{FNAME}',
         ),
     'OOLANG' => false,
     'OBJECT_SPLITTERS' => array(
@@ -183,6 +204,10 @@
         'COMMENTS' => array(
             'DISALLOWED_BEFORE' => '\\'
         ),
+        'KEYWORDS' => array(
+            'DISALLOWED_BEFORE' => "(?<=\\\\)",
+            'DISALLOWED_AFTER' => "(?![A-Za-z0-9])"
+        ),
         'ENABLE_FLAGS' => array(
             'NUMBERS' => GESHI_NEVER,
             'BRACKETS' => GESHI_NEVER
@@ -190,4 +215,4 @@
     )
 );
 
-?>
+?>
\ No newline at end of file