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/prolog.php | 143 ++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 system/application/libraries/geshi/prolog.php (limited to 'system/application/libraries/geshi/prolog.php') diff --git a/system/application/libraries/geshi/prolog.php b/system/application/libraries/geshi/prolog.php new file mode 100644 index 000000000..1f35a1b82 --- /dev/null +++ b/system/application/libraries/geshi/prolog.php @@ -0,0 +1,143 @@ + 'Prolog', + 'COMMENT_SINGLE' => array(1 => '%'), + 'COMMENT_MULTI' => array('/*' => '*/'), + 'HARDQUOTE' => array("'", "'"), + 'HARDESCAPE' => array("\'"), + 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, + 'QUOTEMARKS' => array(), + 'ESCAPE_CHAR' => '', + 'NUMBERS' => + GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_FLT_SCI_ZERO, + 'KEYWORDS' => array( + 1 => array( + 'abolish','abs','arg','asserta','assertz','at_end_of_stream','atan', + 'atom','atom_chars','atom_codes','atom_concat','atom_length', + 'atomic','bagof','call','catch','ceiling','char_code', + 'char_conversion','clause','close','compound','consult','copy_term', + 'cos','current_char_conversion','current_input','current_op', + 'current_output','current_predicate','current_prolog_flag', + 'discontiguous','dynamic','ensure_loaded','exp','fail','findall', + 'float','float_fractional_part','float_integer_part','floor', + 'flush_output','functor','get_byte','get_char','get_code','halt', + 'include','initialization','integer','is','listing','log','mod', + 'multifile','nl','nonvar','notrace','number','number_chars', + 'number_codes','once','op','open','peek_byte','peek_char', + 'peek_code','put_byte','put_char','put_code','read','read_term', + 'rem','repeat','retract','round','set_input','set_output', + 'set_prolog_flag','set_stream_position','setof','sign','sin','sqrt', + 'stream_property','sub_atom','throw','trace','true','truncate', + 'unify_with_occurs_check','univ','var','write','write_canonical', + 'write_term','writeq' + ) + ), + 'SYMBOLS' => array( + 0 => array('(', ')', '[', ']', '{', '}',), + 1 => array('?-', ':-', '=:='), + 2 => array('\-', '\+', '\*', '\/'), + 3 => array('-', '+', '*', '/'), + 4 => array('.', ':', ',', ';'), + 5 => array('!', '@', '&', '|'), + 6 => array('<', '>', '=') + ), + 'CASE_SENSITIVE' => array( + GESHI_COMMENTS => false, + 1 => false + ), + 'STYLES' => array( + 'KEYWORDS' => array( + 1 => 'color: #990000;' + ), + '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: #0000ff;', + 'HARD' => 'color: #0000ff;' + ), + 'NUMBERS' => array( + 0 => 'color: #800080;' + ), + 'METHODS' => array( + ), + 'SYMBOLS' => array( + 0 => 'color: #339933;', + 1 => 'color: #339933;', + 2 => 'color: #339933;', + 3 => 'color: #339933;', + 4 => 'color: #339933;', + 5 => 'color: #339933;', + 6 => 'color: #339933;' + ), + 'REGEXPS' => array( + 0 => 'color: #008080;' + ), + 'SCRIPT' => array( + ) + ), + 'URLS' => array( + 1 => 'http://pauillac.inria.fr/~deransar/prolog/bips.html' + ), + 'OOLANG' => false, + 'OBJECT_SPLITTERS' => array( + ), + 'REGEXPS' => array( + //Variables + 0 => "(? GESHI_NEVER, + 'SCRIPT_DELIMITERS' => array( + ), + 'HIGHLIGHT_STRICT_BLOCK' => array( + ), + 'TAB_WIDTH' => 4 +); + +?> -- cgit v1.2.3-24-g4f1b