From 71273d9477b88cca86e6724491c1ea337ee96f05 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 13 Jun 2012 21:27:14 +0200 Subject: switch to pygments - faster than geshi - easier to modify the css because there is only one - geshi upstream seems pretty dead Signed-off-by: Florian Pritz --- application/libraries/geshi/rpmspec.php | 133 -------------------------------- 1 file changed, 133 deletions(-) delete mode 100644 application/libraries/geshi/rpmspec.php (limited to 'application/libraries/geshi/rpmspec.php') diff --git a/application/libraries/geshi/rpmspec.php b/application/libraries/geshi/rpmspec.php deleted file mode 100644 index 243df94c7..000000000 --- a/application/libraries/geshi/rpmspec.php +++ /dev/null @@ -1,133 +0,0 @@ - 'RPM Specification File', - 'COMMENT_SINGLE' => array(1 => '#'), - 'COMMENT_MULTI' => array(), - 'QUOTEMARKS' => array('"','`'), - 'ESCAPE_CHAR' => '\\', - 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, - 'CASE_SENSITIVE' => array( - GESHI_COMMENTS => false, - ), - 'KEYWORDS' => array( - ), - 'SYMBOLS' => array( - '<', '>', '=', - '!', '@', '~', '&', '|', '^', - '+','-', '*', '/', '%', - ',', ';', '?', '.', ':' - ), - 'STYLES' => array( - 'KEYWORDS' => array( - ), - 'COMMENTS' => array( - 1 => 'color: #666666; font-style: italic;', - '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;', - ), - 'NUMBERS' => array( - 0 => 'color: #cc66cc;' - ), - 'METHODS' => array( - 1 => 'color: #006600;', - 2 => 'color: #006600;' - ), - 'SYMBOLS' => array( - 0 => 'color: #339933;' - ), - 'REGEXPS' => array( - 1 => 'color: #0000ff;', - 2 => 'color: #009999;', - 3 => 'color: #000000; font-weight: bold;', - 4 => 'color: #ff6600; font-style: italic;', - ), - 'SCRIPT' => array( - ) - ), - 'REGEXPS' => array( - 1 => array( - // search for generic macros - GESHI_SEARCH => '(%{?[a-zA-Z0-9_]+}?)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => '', - GESHI_BEFORE => '', - GESHI_AFTER => '', - ), - 2 => array( - // search for special macros - GESHI_SEARCH => '(%(?:define|patch\d*|mklibname|mkrel|configure\S+|makeinstall\S+|make_session|make|defattr|config|doc|setup))', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', - GESHI_AFTER => '', - ), - 3 => array ( - // special definitions - GESHI_SEARCH => '((?:summary|license|buildroot|buildrequires|provides|version|release|source\d*|group|buildarch|autoreqprov|provides|obsoletes|vendor|distribution|suggests|autoreq|autoprov|conflicts|name|url|requires|patch\d*):)', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', - GESHI_AFTER => '', - ), - 4 => array ( - // section delimiting words - GESHI_SEARCH => '(%(?:description|package|prep|build|install|clean|postun|preun|post|pre|files|changelog))', - GESHI_REPLACE => '\\1', - GESHI_MODIFIERS => 'i', - GESHI_BEFORE => '', - GESHI_AFTER => '', - ), - ), - 'URLS' => array(), - 'OOLANG' => false, - 'OBJECT_SPLITTERS' => array(), - 'HIGHLIGHT_STRICT_BLOCK' => array(), - 'STRICT_MODE_APPLIES' => GESHI_NEVER, - 'SCRIPT_DELIMITERS' => array(), -); - -?> \ No newline at end of file -- cgit v1.2.3-24-g4f1b