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/whitespace.php | 121 ++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 system/application/libraries/geshi/whitespace.php (limited to 'system/application/libraries/geshi/whitespace.php') diff --git a/system/application/libraries/geshi/whitespace.php b/system/application/libraries/geshi/whitespace.php new file mode 100644 index 000000000..a27a7b920 --- /dev/null +++ b/system/application/libraries/geshi/whitespace.php @@ -0,0 +1,121 @@ + 'Whitespace', + 'COMMENT_SINGLE' => array(), + 'COMMENT_MULTI' => array(), + 'COMMENT_REGEXP' => array( + 3 => "/[^\n\x20\x09]+/s" + ), + 'CASE_KEYWORDS' => GESHI_CAPS_UPPER, + 'QUOTEMARKS' => array(), + 'ESCAPE_CHAR' => '', + 'KEYWORDS' => array( + ), + 'SYMBOLS' => array( + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + ), + 'STYLES' => array( + 'KEYWORDS' => array( + ), + 'COMMENTS' => array( + 3 => 'color: #666666; font-style: italic;' + ), + 'BRACKETS' => array( + 0 => 'color: #66cc66;' + ), + 'STRINGS' => array( + 0 => 'color: #ff0000;' + ), + 'NUMBERS' => array( + ), + 'METHODS' => array( + ), + 'SYMBOLS' => array( + ), + 'ESCAPE_CHAR' => array( + ), + 'SCRIPT' => array( + ), + 'REGEXPS' => array( + 2 => 'background-color: #FF9999;', + 3 => 'background-color: #9999FF;' + ) + ), + 'URLS' => array( + ), + 'OOLANG' => false, + 'OBJECT_SPLITTERS' => array( + ), + 'REGEXPS' => array( + 2 => array( + GESHI_SEARCH => "(? " ", + GESHI_MODIFIERS => 's', + GESHI_BEFORE => "", + GESHI_AFTER => "" + ), + 3 => array( + GESHI_SEARCH => "\x09", + GESHI_REPLACE => " ", + GESHI_MODIFIERS => 's', + GESHI_BEFORE => "", + GESHI_AFTER => "" + ), + ), + 'STRICT_MODE_APPLIES' => GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ), + 'TAB_WIDTH' => 4, + 'PARSER_CONTROL' => array( + 'ENABLE_FLAGS' => array( + 'KEYWORDS' => GESHI_NEVER, + 'SYMBOLS' => GESHI_NEVER, + 'STRINGS' => GESHI_NEVER, +// 'REGEXPS' => GESHI_NEVER, + 'NUMBERS' => GESHI_NEVER + ) + ) +); + +?> -- cgit v1.2.3-24-g4f1b