From 4d57caedaa53da50eb55e574762cb82502b5fc02 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 12 Sep 2010 02:04:21 +0200 Subject: switch to geshi for highlighting Signed-off-by: Florian Pritz --- system/application/libraries/geshi/oberon2.php | 135 +++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 system/application/libraries/geshi/oberon2.php (limited to 'system/application/libraries/geshi/oberon2.php') diff --git a/system/application/libraries/geshi/oberon2.php b/system/application/libraries/geshi/oberon2.php new file mode 100644 index 000000000..35152b55f --- /dev/null +++ b/system/application/libraries/geshi/oberon2.php @@ -0,0 +1,135 @@ + 'Oberon-2', + 'COMMENT_SINGLE' => array(), + 'COMMENT_MULTI' => array('(*' => '*)'), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array('"'), + 'HARDQUOTE' => array("'", "'"), + 'HARDESCAPE' => array("''"), + 'ESCAPE_CHAR' => '\\', + 'KEYWORDS' => array( + 1 => array( + 'ARRAY', 'BEGIN', 'BY', 'CASE', + 'CONST', 'DIV', 'DO', 'ELSE', 'ELSIF', 'END', + 'EXIT', 'FOR', 'IF', 'IMPORT', 'IN', 'IS', + 'LOOP', 'MOD', 'MODULE', 'OF', + 'OR', 'POINTER', 'PROCEDURE', 'RECORD', + 'REPEAT', 'RETURN', 'THEN', 'TO', + 'TYPE', 'UNTIL', 'VAR', 'WHILE', 'WITH' + ), + 2 => array( + 'NIL', 'FALSE', 'TRUE', + ), + 3 => array( + 'ABS', 'ASH', 'ASSERT', 'CAP', 'CHR', 'COPY', 'DEC', + 'ENTIER', 'EXCL', 'HALT', 'INC', 'INCL', 'LEN', + 'LONG', 'MAX', 'MIN', 'NEW', 'ODD', 'ORD', 'SHORT', 'SIZE' + ), + 4 => array( + 'BOOLEAN', 'CHAR', 'SHORTINT', 'LONGINT', + 'INTEGER', 'LONGREAL', 'REAL', 'SET', 'PTR' + ), + ), + 'SYMBOLS' => array( + ',', ':', '=', '+', '-', '*', '/', '#', '~' + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => true, + 2 => true, + 3 => true, + 4 => true, + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #000000; font-weight: bold;', + 2 => 'color: #000000; font-weight: bold;', + 3 => 'color: #000066;', + 4 => 'color: #000066; font-weight: bold;' + ), + 'COMMENTS' => array( + 'MULTI' => 'color: #666666; font-style: italic;' + ), + 'ESCAPE_CHAR' => array( + 0 => 'color: #000099; font-weight: bold;', + 'HARD' => 'color: #000099; font-weight: bold;' + ), + 'BRACKETS' => array( + 0 => 'color: #009900;' + ), + 'STRINGS' => array( + 0 => 'color: #ff0000;', + 'HARD' => 'color: #ff0000;' + ), + 'NUMBERS' => array( + 0 => 'color: #cc66cc;' + ), + 'METHODS' => array( + 1 => 'color: #0066ee;' + ), + 'SYMBOLS' => array( + 0 => 'color: #339933;' + ), + 'REGEXPS' => array( + ), + 'SCRIPT' => array( + ) + ), + 'URLS' => array( + 1 => '', + 2 => '', + 3 => '', + 4 => '' + ), + 'OOLANG' => true, + 'OBJECT_SPLITTERS' => array( + 1 => '.' + ), + 'REGEXPS' => array( + ), + 'STRICT_MODE_APPLIES' => GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ), + 'TAB_WIDTH' => 4 +); + +?> \ No newline at end of file -- cgit v1.2.3-24-g4f1b