From b5bef19b5dbebf123d1c181b3cebadea198add35 Mon Sep 17 00:00:00 2001 From: andi Date: Thu, 14 Jul 2005 21:33:36 +0200 Subject: updated GeSHi to 1.0.7 darcs-hash:20050714193336-9977f-c0d5b8e6db9f92720b1f8b539fdef1f04823f5f7.gz --- inc/geshi/diff.php | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 inc/geshi/diff.php (limited to 'inc/geshi/diff.php') diff --git a/inc/geshi/diff.php b/inc/geshi/diff.php new file mode 100644 index 000000000..47ccab677 --- /dev/null +++ b/inc/geshi/diff.php @@ -0,0 +1,137 @@ + 'Diff', + 'COMMENT_SINGLE' => array( + 0 => '--- ', + 1 => '+++ ', + 2 => '<', + 3 => '>', + 4 => '-', + 5 => '+', + 6 => '!', + 7 => '@@', + 8 => '*** ', + /*9 => '***************',*/ + /*10 => ' ', // All other rows starts with a space (bug?) */ + ), + 'COMMENT_MULTI' => array(), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array(), + 'ESCAPE_CHAR' => ' ', + 'KEYWORDS' => array( + 0 => array( + '\ No newline at end of file', + ), + 1 => array( + '***************' /* This only seems to works in some cases? */ + ), + ), + 'SYMBOLS' => array( + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 0 => 'color: #aaaaaa; font-style: italic;', + 1 => 'color: #dd6611;', + ), + 'COMMENTS' => array( + 0 => 'color: #228822;', + 1 => 'color: #228822;', + 2 => 'color: #991111;', + 3 => 'color: #00aaee;', + 4 => 'color: #991111;', + 5 => 'color: #00b000;', + /*6 => 'color: #dd6611;', */ + 6 => 'color: #0011dd;', + 7 => 'color: #aaaa88;', + 8 => 'color: #228822;', + /*9 => 'color: #aaaa88;',*/ + /*10 => 'color: #000000;',*/ + ), + 'ESCAPE_CHAR' => array( + ), + 'BRACKETS' => array( + ), + 'STRINGS' => array( + ), + 'NUMBERS' => array( + ), + 'METHODS' => array( + ), + 'SYMBOLS' => array( + ), + 'SCRIPT' => array( + ), + 'REGEXPS' => array( + 0 => 'color: #aaaaaa;', + /*1 => 'color: #000000;',*/ + ), + ), + 'URLS' => array( + ), + 'OOLANG' => false, + 'OBJECT_SPLITTER' => '', + 'REGEXPS' => array( + 0 => "[0-9,]+[acd][0-9,]+", + /*1 => array( // Match all other lines - again this also doesn't work. + GESHI_SEARCH => '(\ )(.+)', + GESHI_REPLACE => '\\2\\3', + GESHI_MODIFIERS => '', + GESHI_BEFORE => '\\1', + GESHI_AFTER => '' + ),*/ + ), + 'STRICT_MODE_APPLIES' => GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ) +); + +?> -- cgit v1.2.3