File geshi/geshi/php.php
Last commit: Fri Nov 23 00:12:00 2007 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.
1 <?php 2 /************************************************************************************* 3 * php.php 4 * -------- 5 * Author: Nigel McNie (nigel@geshi.org) 6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) 7 * Release Version: 1.0.7.20 8 * Date Started: 2004/06/20 9 * 10 * PHP language file for GeSHi. 11 * 12 * CHANGES 13 * ------- 14 * 2004/11/25 (1.0.3) 15 * - Added support for multiple object splitters 16 * - Fixed &new problem 17 * 2004/10/27 (1.0.2) 18 * - Added URL support 19 * - Added extra constants 20 * 2004/08/05 (1.0.1) 21 * - Added support for symbols 22 * 2004/07/14 (1.0.0) 23 * - First Release 24 * 25 * TODO (updated 2004/07/14) 26 * ------------------------- 27 * * Make sure the last few function I may have missed 28 * (like eval()) are included for highlighting 29 * * Split to several files - php4, php5 etc 30 * 31 ************************************************************************************* 32 * 33 * This file is part of GeSHi. 34 * 35 * GeSHi is free software; you can redistribute it and/or modify 36 * it under the terms of the GNU General Public License as published by 37 * the Free Software Foundation; either version 2 of the License, or 38 * (at your option) any later version. 39 * 40 * GeSHi is distributed in the hope that it will be useful, 41 * but WITHOUT ANY WARRANTY; without even the implied warranty of 42 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 43 * GNU General Public License for more details. 44 * 45 * You should have received a copy of the GNU General Public License 46 * along with GeSHi; if not, write to the Free Software 47 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 48 * 49 ************************************************************************************/ 50 51 $language_data = array ( 52 'LANG_NAME' => 'PHP', 53 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 54 'COMMENT_MULTI' => array('/*' => '*/'), 55 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 56 'QUOTEMARKS' => array("'", '"'), 57 'ESCAPE_CHAR' => '\\', 58 'KEYWORDS' => array( 59 1 => array( 60 'include', 'require', 'include_once', 'require_once', 61 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', 62 'endif', 'switch', 'case', 'endswitch', 'endfor', 'endforeach', 63 'return', 'break', 'continue' 64 ), 65 2 => array( 66 'null', '__LINE__', '__FILE__', 67 'false', '<?php', '?>', '<?', 68 '<script language', '</script>', 69 'true', 'var', 'default', 70 'function', 'class', 'new', '&new', 'public', 'private', 'interface', 'extends', 71 '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', 72 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', 73 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', 74 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', 75 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', 76 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', 77 'E_USER_WARNING', 'E_USER_NOTICE', 'E_ALL' 78 ), 79 3 => array( 80 'zlib_get_coding_type','zend_version','zend_logo_guid','yp_order','yp_next', 81 'yp_match','yp_master','yp_get_default_domain','yp_first','yp_errno','yp_err_string', 82 'yp_cat','yp_all','xml_set_unparsed_entity_decl_handler','xml_set_start_namespace_decl_handler','xml_set_processing_instruction_handler','xml_set_object', 83 'xml_set_notation_decl_handler','xml_set_external_entity_ref_handler','xml_set_end_namespace_decl_handler','xml_set_element_handler','xml_set_default_handler','xml_set_character_data_handler', 84 'xml_parser_set_option','xml_parser_get_option','xml_parser_free','xml_parser_create_ns','xml_parser_create','xml_parse_into_struct', 85 'xml_parse','xml_get_error_code','xml_get_current_line_number','xml_get_current_column_number','xml_get_current_byte_index','xml_error_string', 86 'wordwrap','wddx_serialize_vars','wddx_serialize_value','wddx_packet_start','wddx_packet_end','wddx_deserialize', 87 'wddx_add_vars','vsprintf','vprintf','virtual','version_compare','var_export', 88 'var_dump','utf8_encode','utf8_decode','usort','usleep','user_error', 89 'urlencode','urldecode','unserialize','unregister_tick_function','unpack','unlink', 90 'unixtojd','uniqid','umask','uksort','ucwords','ucfirst', 91 'uasort','trim','trigger_error','touch','token_name','token_get_all', 92 'tmpfile','time','textdomain','tempnam','tanh','tan', 93 'system','syslog','symlink','substr_replace','substr_count','substr', 94 'strval','strtr','strtoupper','strtotime','strtolower','strtok', 95 'strstr','strspn','strrpos','strrev','strrchr','strpos', 96 'strncmp','strncasecmp','strnatcmp','strnatcasecmp','strlen','stristr', 97 'stripslashes','stripcslashes','strip_tags','strftime','stream_wrapper_register','stream_set_write_buffer', 98 'stream_set_timeout','stream_set_blocking','stream_select','stream_register_wrapper','stream_get_meta_data','stream_filter_prepend', 99 'stream_filter_append','stream_context_set_params','stream_context_set_option','stream_context_get_options','stream_context_create','strcspn', 100 'strcoll','strcmp','strchr','strcasecmp','str_word_count','str_shuffle', 101 'str_rot13','str_replace','str_repeat','str_pad','stat','sscanf', 102 'srand','sqrt','sql_regcase','sprintf','spliti','split', 103 'soundex','sort','socket_writev','socket_write','socket_strerror','socket_shutdown', 104 'socket_setopt','socket_set_timeout','socket_set_option','socket_set_nonblock','socket_set_blocking','socket_set_block', 105 'socket_sendto','socket_sendmsg','socket_send','socket_select','socket_recvmsg','socket_recvfrom', 106 'socket_recv','socket_readv','socket_read','socket_listen','socket_last_error','socket_iovec_set', 107 'socket_iovec_free','socket_iovec_fetch','socket_iovec_delete','socket_iovec_alloc','socket_iovec_add','socket_getsockname', 108 'socket_getpeername','socket_getopt','socket_get_status','socket_get_option','socket_create_pair','socket_create_listen', 109 'socket_create','socket_connect','socket_close','socket_clear_error','socket_bind','socket_accept', 110 'sleep','sizeof','sinh','sin','similar_text','shuffle', 111 'show_source','shmop_write','shmop_size','shmop_read','shmop_open','shmop_delete', 112 'shmop_close','shm_remove_var','shm_remove','shm_put_var','shm_get_var','shm_detach', 113 'shm_attach','shell_exec','sha1_file','sha1','settype','setlocale', 114 'setcookie','set_time_limit','set_socket_blocking','set_magic_quotes_runtime','set_include_path','set_file_buffer', 115 'set_error_handler','session_write_close','session_unset','session_unregister','session_start','session_set_save_handler', 116 'session_set_cookie_params','session_save_path','session_register','session_regenerate_id','session_name','session_module_name', 117 'session_is_registered','session_id','session_get_cookie_params','session_encode','session_destroy','session_decode', 118 'session_cache_limiter','session_cache_expire','serialize','sem_remove','sem_release','sem_get', 119 'sem_acquire','rtrim','rsort','round','rmdir','rewinddir', 120 'rewind','restore_include_path','restore_error_handler','reset','rename','register_tick_function', 121 'register_shutdown_function','realpath','readlink','readgzfile','readfile','readdir', 122 'read_exif_data','rawurlencode','rawurldecode','range','rand','rad2deg', 123 'quotemeta','quoted_printable_decode','putenv','proc_open','proc_close','printf', 124 'print_r','prev','preg_split','preg_replace_callback','preg_replace','preg_quote', 125 'preg_match_all','preg_match','preg_grep','pow','posix_uname','posix_ttyname', 126 'posix_times','posix_strerror','posix_setuid','posix_setsid','posix_setpgid','posix_setgid', 127 'posix_seteuid','posix_setegid','posix_mkfifo','posix_kill','posix_isatty','posix_getuid', 128 'posix_getsid','posix_getrlimit','posix_getpwuid','posix_getpwnam','posix_getppid','posix_getpid', 129 'posix_getpgrp','posix_getpgid','posix_getlogin','posix_getgroups','posix_getgrnam','posix_getgrgid', 130 'posix_getgid','posix_geteuid','posix_getegid','posix_getcwd','posix_get_last_error','posix_errno', 131 'posix_ctermid','pos','popen','pi','phpversion','phpinfo', 132 'phpcredits','php_uname','php_sapi_name','php_logo_guid','php_ini_scanned_files','pg_update', 133 'pg_untrace','pg_unescape_bytea','pg_tty','pg_trace','pg_setclientencoding','pg_set_client_encoding', 134 'pg_send_query','pg_select','pg_result_status','pg_result_seek','pg_result_error','pg_result', 135 'pg_query','pg_put_line','pg_port','pg_ping','pg_pconnect','pg_options', 136 'pg_numrows','pg_numfields','pg_num_rows','pg_num_fields','pg_meta_data','pg_lowrite', 137 'pg_lounlink','pg_loreadall','pg_loread','pg_loopen','pg_loimport','pg_loexport', 138 'pg_locreate','pg_loclose','pg_lo_write','pg_lo_unlink','pg_lo_tell','pg_lo_seek', 139 'pg_lo_read_all','pg_lo_read','pg_lo_open','pg_lo_import','pg_lo_export','pg_lo_create', 140 'pg_lo_close','pg_last_oid','pg_last_notice','pg_last_error','pg_insert','pg_host', 141 'pg_getlastoid','pg_get_result','pg_get_pid','pg_get_notify','pg_freeresult','pg_free_result', 142 'pg_fieldtype','pg_fieldsize','pg_fieldprtlen','pg_fieldnum','pg_fieldname','pg_fieldisnull', 143 'pg_field_type','pg_field_size','pg_field_prtlen','pg_field_num','pg_field_name','pg_field_is_null', 144 'pg_fetch_row','pg_fetch_result','pg_fetch_object','pg_fetch_assoc','pg_fetch_array','pg_fetch_all', 145 'pg_exec','pg_escape_string','pg_escape_bytea','pg_errormessage','pg_end_copy','pg_delete', 146 'pg_dbname','pg_copy_to','pg_copy_from','pg_convert','pg_connection_status','pg_connection_reset', 147 'pg_connection_busy','pg_connect','pg_cmdtuples','pg_close','pg_clientencoding','pg_client_encoding', 148 'pg_cancel_query','pg_affected_rows','pfsockopen','pclose','pathinfo','passthru', 149 'parse_url','parse_str','parse_ini_file','pack','overload','output_reset_rewrite_vars', 150 'output_add_rewrite_var','ord','openssl_x509_read','openssl_x509_parse','openssl_x509_free','openssl_x509_export_to_file', 151 'openssl_x509_export','openssl_x509_checkpurpose','openssl_x509_check_private_key','openssl_verify','openssl_sign','openssl_seal', 152 'openssl_public_encrypt','openssl_public_decrypt','openssl_private_encrypt','openssl_private_decrypt','openssl_pkey_new','openssl_pkey_get_public', 153 'openssl_pkey_get_private','openssl_pkey_free','openssl_pkey_export_to_file','openssl_pkey_export','openssl_pkcs7_verify','openssl_pkcs7_sign', 154 'openssl_pkcs7_encrypt','openssl_pkcs7_decrypt','openssl_open','openssl_get_publickey','openssl_get_privatekey','openssl_free_key', 155 'openssl_error_string','openssl_csr_sign','openssl_csr_new','openssl_csr_export_to_file','openssl_csr_export','openlog', 156 'opendir','octdec','ob_start','ob_list_handlers','ob_implicit_flush','ob_iconv_handler', 157 'ob_gzhandler','ob_get_status','ob_get_level','ob_get_length','ob_get_flush','ob_get_contents', 158 'ob_get_clean','ob_flush','ob_end_flush','ob_end_clean','ob_clean','number_format', 159 'nl_langinfo','nl2br','ngettext','next','natsort','natcasesort', 160 'mysql_unbuffered_query','mysql_thread_id','mysql_tablename','mysql_table_name','mysql_stat','mysql_selectdb', 161 'mysql_select_db','mysql_result','mysql_real_escape_string','mysql_query','mysql_ping','mysql_pconnect', 162 'mysql_numrows','mysql_numfields','mysql_num_rows','mysql_num_fields','mysql_listtables','mysql_listfields', 163 'mysql_listdbs','mysql_list_tables','mysql_list_processes','mysql_list_fields','mysql_list_dbs','mysql_insert_id', 164 'mysql_info','mysql_get_server_info','mysql_get_proto_info','mysql_get_host_info','mysql_get_client_info','mysql_freeresult', 165 'mysql_free_result','mysql_fieldtype','mysql_fieldtable','mysql_fieldname','mysql_fieldlen','mysql_fieldflags', 166 'mysql_field_type','mysql_field_table','mysql_field_seek','mysql_field_name','mysql_field_len','mysql_field_flags', 167 'mysql_fetch_row','mysql_fetch_object','mysql_fetch_lengths','mysql_fetch_field','mysql_fetch_assoc','mysql_fetch_array', 168 'mysql_escape_string','mysql_error','mysql_errno','mysql_dropdb','mysql_drop_db','mysql_dbname', 169 'mysql_db_query','mysql_db_name','mysql_data_seek','mysql_createdb','mysql_create_db','mysql_connect', 170 'mysql_close','mysql_client_encoding','mysql_affected_rows','mysql','mt_srand','mt_rand', 171 'mt_getrandmax','move_uploaded_file','money_format','mktime','mkdir','min', 172 'microtime','method_exists','metaphone','memory_get_usage','md5_file','md5', 173 'mbsubstr','mbstrrpos','mbstrpos','mbstrlen','mbstrcut','mbsplit', 174 'mbregex_encoding','mberegi_replace','mberegi','mbereg_search_setpos','mbereg_search_regs','mbereg_search_pos', 175 'mbereg_search_init','mbereg_search_getregs','mbereg_search_getpos','mbereg_search','mbereg_replace','mbereg_match', 176 'mbereg','mb_substr_count','mb_substr','mb_substitute_character','mb_strwidth','mb_strtoupper', 177 'mb_strtolower','mb_strrpos','mb_strpos','mb_strlen','mb_strimwidth','mb_strcut', 178 'mb_split','mb_send_mail','mb_regex_set_options','mb_regex_encoding','mb_preferred_mime_name','mb_parse_str', 179 'mb_output_handler','mb_language','mb_internal_encoding','mb_http_output','mb_http_input','mb_get_info', 180 'mb_eregi_replace','mb_eregi','mb_ereg_search_setpos','mb_ereg_search_regs','mb_ereg_search_pos','mb_ereg_search_init', 181 'mb_ereg_search_getregs','mb_ereg_search_getpos','mb_ereg_search','mb_ereg_replace','mb_ereg_match','mb_ereg', 182 'mb_encode_numericentity','mb_encode_mimeheader','mb_detect_order','mb_detect_encoding','mb_decode_numericentity','mb_decode_mimeheader', 183 'mb_convert_variables','mb_convert_kana','mb_convert_encoding','mb_convert_case','max','mail', 184 'magic_quotes_runtime','ltrim','lstat','long2ip','log1p','log10', 185 'log','localtime','localeconv','linkinfo','link','levenshtein', 186 'lcg_value','ksort','krsort','key_exists','key','juliantojd', 187 'join','jewishtojd','jdtounix','jdtojulian','jdtojewish','jdtogregorian', 188 'jdtofrench','jdmonthname','jddayofweek','is_writeable','is_writable','is_uploaded_file', 189 'is_subclass_of','is_string','is_scalar','is_resource','is_real','is_readable', 190 'is_object','is_numeric','is_null','is_nan','is_long','is_link', 191 'is_integer','is_int','is_infinite','is_float','is_finite','is_file', 192 'is_executable','is_double','is_dir','is_callable','is_bool','is_array', 193 'is_a','iptcparse','iptcembed','ip2long','intval','ini_set', 194 'ini_restore','ini_get_all','ini_get','ini_alter','in_array','import_request_variables', 195 'implode','image_type_to_mime_type','ignore_user_abort','iconv_set_encoding','iconv_get_encoding','iconv', 196 'i18n_mime_header_encode','i18n_mime_header_decode','i18n_ja_jp_hantozen','i18n_internal_encoding','i18n_http_output','i18n_http_input', 197 'i18n_discover_encoding','i18n_convert','hypot','htmlspecialchars','htmlentities','html_entity_decode', 198 'highlight_string','highlight_file','hexdec','hebrevc','hebrev','headers_sent', 199 'header','gzwrite','gzuncompress','gztell','gzseek','gzrewind', 200 'gzread','gzputs','gzpassthru','gzopen','gzinflate','gzgetss', 201 'gzgets','gzgetc','gzfile','gzeof','gzencode','gzdeflate', 202 'gzcompress','gzclose','gregoriantojd','gmstrftime','gmmktime','gmdate', 203 'glob','gettype','gettimeofday','gettext','getservbyport','getservbyname', 204 'getrusage','getrandmax','getprotobynumber','getprotobyname','getopt','getmyuid', 205 'getmypid','getmyinode','getmygid','getmxrr','getlastmod','getimagesize', 206 'gethostbynamel','gethostbyname','gethostbyaddr','getenv','getdate','getcwd', 207 'getallheaders','get_resource_type','get_required_files','get_parent_class','get_object_vars','get_meta_tags', 208 'get_magic_quotes_runtime','get_magic_quotes_gpc','get_loaded_extensions','get_included_files','get_include_path','get_html_translation_table', 209 'get_extension_funcs','get_defined_vars','get_defined_functions','get_defined_constants','get_declared_classes','get_current_user', 210 'get_class_vars','get_class_methods','get_class','get_cfg_var','get_browser','fwrite', 211 'function_exists','func_num_args','func_get_args','func_get_arg','ftruncate','ftp_systype', 212 'ftp_ssl_connect','ftp_size','ftp_site','ftp_set_option','ftp_rmdir','ftp_rename', 213 'ftp_rawlist','ftp_quit','ftp_pwd','ftp_put','ftp_pasv','ftp_nlist', 214 'ftp_nb_put','ftp_nb_get','ftp_nb_fput','ftp_nb_fget','ftp_nb_continue','ftp_mkdir', 215 'ftp_mdtm','ftp_login','ftp_get_option','ftp_get','ftp_fput','ftp_fget', 216 'ftp_exec','ftp_delete','ftp_connect','ftp_close','ftp_chdir','ftp_cdup', 217 'ftok','ftell','fstat','fsockopen','fseek','fscanf', 218 'frenchtojd','fread','fputs','fpassthru','fopen','fnmatch', 219 'fmod','flush','floor','flock','floatval','filetype', 220 'filesize','filepro_rowcount','filepro_retrieve','filepro_fieldwidth','filepro_fieldtype','filepro_fieldname', 221 'filepro_fieldcount','filepro','fileperms','fileowner','filemtime','fileinode', 222 'filegroup','filectime','fileatime','file_get_contents','file_exists','file', 223 'fgetss','fgets','fgetcsv','fgetc','fflush','feof', 224 'fclose','ezmlm_hash','extract','extension_loaded','expm1','explode', 225 'exp','exif_thumbnail','exif_tagname','exif_read_data','exif_imagetype','exec', 226 'escapeshellcmd','escapeshellarg','error_reporting','error_log','eregi_replace','eregi', 227 'ereg_replace','ereg','end','easter_days','easter_date','each', 228 'doubleval','dngettext','dl','diskfreespace','disk_total_space','disk_free_space', 229 'dirname','dir','dgettext','deg2rad','defined','define_syslog_variables', 230 'define','decoct','dechex','decbin','debug_zval_dump','debug_backtrace', 231 'deaggregate','dcngettext','dcgettext','dba_sync','dba_replace','dba_popen', 232 'dba_optimize','dba_open','dba_nextkey','dba_list','dba_insert','dba_handlers', 233 'dba_firstkey','dba_fetch','dba_exists','dba_delete','dba_close','date', 234 'current','ctype_xdigit','ctype_upper','ctype_space','ctype_punct','ctype_print', 235 'ctype_lower','ctype_graph','ctype_digit','ctype_cntrl','ctype_alpha','ctype_alnum', 236 'crypt','create_function','crc32','count_chars','count','cosh', 237 'cos','copy','convert_cyr_string','constant','connection_status','connection_aborted', 238 'compact','closelog','closedir','clearstatcache','class_exists','chunk_split', 239 'chr','chown','chop','chmod','chgrp','checkdnsrr', 240 'checkdate','chdir','ceil','call_user_method_array','call_user_method','call_user_func_array', 241 'call_user_func','cal_to_jd','cal_info','cal_from_jd','cal_days_in_month','bzwrite', 242 'bzread','bzopen','bzflush','bzerrstr','bzerror','bzerrno', 243 'bzdecompress','bzcompress','bzclose','bindtextdomain','bindec','bind_textdomain_codeset', 244 'bin2hex','bcsub','bcsqrt','bcscale','bcpow','bcmul', 245 'bcmod','bcdiv','bccomp','bcadd','basename','base_convert', 246 'base64_encode','base64_decode','atanh','atan2','atan','assert_options', 247 'assert','asort','asinh','asin','arsort','array_walk', 248 'array_values','array_unshift','array_unique','array_sum','array_splice','array_slice', 249 'array_shift','array_search','array_reverse','array_reduce','array_rand','array_push', 250 'array_pop','array_pad','array_multisort','array_merge_recursive','array_merge','array_map', 251 'array_keys','array_key_exists','array_intersect_assoc','array_intersect','array_flip','array_filter', 252 'array_fill','array_diff_assoc','array_diff','array_count_values','array_chunk','array_change_key_case', 253 'apache_setenv','apache_response_headers','apache_request_headers','apache_note','apache_lookup_uri','apache_get_version', 254 'apache_child_terminate','aggregation_info','aggregate_properties_by_regexp','aggregate_properties_by_list','aggregate_properties','aggregate_methods_by_regexp', 255 'aggregate_methods_by_list','aggregate_methods','aggregate','addslashes','addcslashes','acosh', 256 'acos','abs','_','echo', 'print', 'global', 'static', 'exit', 'array', 'empty', 257 'eval', 'isset', 'unset', 'die', 'list' 258 ) 259 ), 260 'SYMBOLS' => array( 261 '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' 262 ), 263 'CASE_SENSITIVE' => array( 264 GESHI_COMMENTS => false, 265 1 => false, 266 2 => false, 267 3 => false, 268 ), 269 'STYLES' => array( 270 'KEYWORDS' => array( 271 1 => 'color: #b1b100;', 272 2 => 'color: #000000; font-weight: bold;', 273 3 => 'color: #000066;' 274 ), 275 'COMMENTS' => array( 276 1 => 'color: #808080; font-style: italic;', 277 2 => 'color: #808080; font-style: italic;', 278 'MULTI' => 'color: #808080; font-style: italic;' 279 ), 280 'ESCAPE_CHAR' => array( 281 0 => 'color: #000099; font-weight: bold;' 282 ), 283 'BRACKETS' => array( 284 0 => 'color: #66cc66;' 285 ), 286 'STRINGS' => array( 287 0 => 'color: #ff0000;' 288 ), 289 'NUMBERS' => array( 290 0 => 'color: #cc66cc;' 291 ), 292 'METHODS' => array( 293 1 => 'color: #006600;', 294 2 => 'color: #006600;' 295 ), 296 'SYMBOLS' => array( 297 0 => 'color: #66cc66;' 298 ), 299 'REGEXPS' => array( 300 0 => 'color: #0000ff;', 301 1 => 'color: #ff0000' 302 ), 303 'SCRIPT' => array( 304 0 => '', 305 1 => '', 306 2 => '', 307 3 => '' 308 ) 309 ), 310 'URLS' => array( 311 1 => '', 312 2 => '', 313 3 => 'http://www.php.net/{FNAME}', 314 4 => '' 315 ), 316 'OOLANG' => true, 317 'OBJECT_SPLITTERS' => array( 318 1 => '->', 319 2 => '::' 320 ), 321 'REGEXPS' => array( 322 0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*", 323 1 => array( 324 GESHI_SEARCH => "([a-zA-Z]+)(\n)(.*)(\n)(\\1;?)", 325 GESHI_REPLACE => '\3', 326 GESHI_BEFORE => '\1\2', 327 GESHI_AFTER => '\4\5', 328 GESHI_MODIFIERS => 'siU' 329 ) 330 ), 331 'STRICT_MODE_APPLIES' => GESHI_MAYBE, 332 'SCRIPT_DELIMITERS' => array( 333 0 => array( 334 '<?php' => '?>' 335 ), 336 1 => array( 337 '<?' => '?>' 338 ), 339 2 => array( 340 '<%' => '%>' 341 ), 342 3 => array( 343 '<script language="php">' => '</script>' 344 ) 345 ), 346 'HIGHLIGHT_STRICT_BLOCK' => array( 347 0 => true, 348 1 => true, 349 2 => true, 350 3 => true 351 ), 352 'TAB_WIDTH' => 4 353 ); 354 355 ?>
Downloadgeshi/geshi/php.php
History Fri, 23 Nov 2007 00:12:00 +0100 dankert Farbige Darstellung von Code-Bl?cken mit Hilfe der Bibliothek GESHI.