/[general]/random/nedit/php_html-5.1.pats
ViewVC logotype

Contents of /random/nedit/php_html-5.1.pats

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 20 14:59:03 2009 UTC (15 years, 2 months ago) by nieder
Branch: MAIN
CVS Tags: HEAD
new pattern

1 ! Syntax Highlighting Patterns for PHP 3
2 ! Originally contributed by Kolb Norbert (nkolb@htl.de)
3 ! modified for php3 and html defaults in the same document
4 ! contributed by Joseph Abrahamson (jabraham@blc.edu)
5 ! Changed several Perl-specific syntaxes to PHP
6 ! by Ben Kosse (bkosse@iname.com)
7 !
8 ! This pattern set is for NEdit 5.1 and beyond. Older versions may
9 ! still be available in:
10 !
11 ! ftp://ftp.nedit.org/pub/v5_0_2/contrib/highlight_pats/
12 !
13 ! Load this file by starting nedit with:
14 !
15 ! nedit -import <name of this file> !
16 ! Then, check that the patterns were loaded correctly, and choose Save Defaults
17 ! from the Preferences menu. The new patterns will now be incorporated into
18 ! your own .nedit file, so the next time you start NEdit, you will no longer
19 ! need to use -import.
20 !
21 ! Changes:
22 !
23 ! March 10, 2000, Updated for NEdit 5.1 (MWE)
24 ! Aug 28, 2000, Updated to be PHP syntax compliant (BK)
25 ! Sept 14, 2000, Fixed some glitches in the subroutine parameters (BK)
26 ! Nov 24, 2000, More glitches fixed, this time in class parameters
27 ! Also added more functions
28 !
29 ! TODO (in order of importance):
30 ! Split the library fns by group so case insensitive matching doesn't
31 ! cause Nedit to core dump on my box.
32 ! Get word boundaries working correctly (this can't be done yet)
33 ! Figure out how to highlight an user-defined function in code
34 !
35
36 nedit.highlightPatterns: \
37 PHP-HTML:1:0{\n\
38 php3:"<(\\<\\?|\\<script language=""php""\\>|\\<?php)>":"<(\\?\\>|\\</script\\>)>"::Plain::\n\
39 php brackets:"\\1":"\\0"::Text Escape:php3:C\n\
40 html spec chars:"\\&[-.a-zA-Z0-9#]*;?":::Text Escape::\n\
41 html comment:"\\<!--":"--\\>"::Comment::\n\
42 html element:"(\\<)(/|!)?[-.a-zA-Z0-9]*":"\\>":"[^-.a-zA-Z0-9 \\t\\n=""'%]":Text Key::\n\
43 html dbl quot str:"""":"""":"[<>]":Text Arg1:html element:\n\
44 html sg quot str:"'":"'":"[<>]":Text Arg1:html element:\n\
45 html attribute:"[^'""]|\\n":::Text Arg:html element:\n\
46 html brackets:"\\1":"\\0"::Text Arg:html element:C\n\
47 comment:"/\\*":"\\*/"::Comment:php3:\n\
48 inlinecomment:"//":"$"::Comment:php3:\n\
49 symbols:"[\\+\\-!=\\\\/\\^\\*%:\\<\\>\\&\\|;\\.,?:]":::Flag:php3:\n\
50 double quote strings:"""":""""::String:php3:\n\
51 dq string esc chars:"\\\\(.|\\n)":::String1:double quote strings:\n\
52 single quote strings:"'":"'"::String:php3:\n\
53 class header:"class[\\t ]+([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)[\\t ]*(extends[\\t ]+){0,1}([a-zA-Z_\\x7f-\\xff]*[a-zA-Z0-9_\\x7f-\\xff]*)[\\t ]*":"(\\{)"::LaTeX Math:php3:\n\
54 class header coloring:"\\1":""::Flag:class header:C\n\
55 class header braces:"\\2":"\\0"::Keyword:class header:C\n\
56 class parent class:"\\3":""::Plain:class header:C\n\
57 subroutine header:"function[\\t ]+([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)[\\t ]*(\\()":::Subroutine1:php3:\n\
58 subr header coloring:"\\1":""::Label:subroutine header:C\n\
59 subr header braces:"\\2":""::Keyword:subroutine header:C\n\
60 ignore escaped chars:"\\\\[#""'\\$msytq]":::Plain:php3:\n\
61 keywords:"<(var|global|new|if|until|while|elseif|else|switch|for|case|default|continue|exit|die|break|goto|continue|return|do|include|require|eval|and|or|xor)>":::Keyword:php3:\n\
62 booleans:"<(true|false)>":::Text Arg2:php3:\n\
63 library fns:"<(array|count|reset|each|list|apache_lookup_uri|apache_note|getallheaders|virtual|aspell_new|aspell_check|aspell_check-raw|aspell_suggest|bcadd|bccomp|bcdiv|bcmod|bcmul|bcpow|bcscale|bcsqrt|bcsub|JDToGregorian|GregorianToJD|JDToJulian|JulianToJD|JDToJewish|JewishToJD|JDToFrench|FrenchToJD|JDMonthName|JDDayOfWeek|checkdate|date|strftime|getdate|gettimeofday|gmdate|mktime|gmmktime|time|microtime|dbase_create|dbase_open|dbase_close|dbase_pack|dbase_add_record|dbase_delete_record|dbase_get_record|dbase_numfields|dbase_numrecords|dbmopen|dbmclose|dbmexists|dbmfetch|dbminsert|dbmreplace|dbmdelete|dbmfirstkey|dbmnextkey|dblist|chdir|dir|closedir|opendir|readdir|rewinddir|dl|escapeshellcmd|exec|system|passthru|filepro|filepro_fieldname|filepro_fieldtype|filepro_fieldwidth|filepro_retrieve|filepro_fieldcount|filepro_rowcount|basename|chgrp|chmod|chown|clearstatcache|copy|dirname|diskfreespace|fclose|feof|fgetc|fgets|fgetss|file|file_exists|fileatime|filectime|filegroup|fileinode|filemtime|fileowner|fileperms|filesize|filetype|flock|fopen|fpassthru|fputs|fread|fseek|ftell|fwrite|is_dir|is_executable|is_file|is_link|is_readable|is_writeable|link|linkinfo|mkdir|pclose|popen|readfile|readlink|rename|rewind|rmdir|stat|lstat|symlink|tempnam|touch|umask|unlink|header|setcookie|hw_Changeobject|hw_Children|hw_ChildrenObj|hw_Close|hw_Connect|hw_Cp|hw_Deleteobject|hw_DocByAnchor|hw_DocByAnchorObj|hw_DocumentAttributes|hw_DocumentBodyTag|hw_DocumentSize|hw_ErrorMsg|hw_EditText|hw_Error|hw_Free_Document|hw_GetParents|hw_GetParentsObj|hw_GetChildColl|hw_GetChildCollObj|hw_GetSrcByDestObj|hw_GetObject|hw_GetAndLock|hw_GetText|hw_GetObjectByQuery|hw_GetObjectByQueryObj|hw_GetObjectByQueryColl|hw_GetObjectByQueryCollObj|hw_GetChildDocColl|hw_GetChildDocCollObj|hw_GetAnchors|hw_GetAnchorsObj|hw_Mv|hw_Identify|hw_InCollections|hw_Info|hw_InsColl|hw_InsDoc|hw_InsertDocument|hw_InsertObject|hw_New_Document|hw_Objrec2Array|hw_OutputDocument|hw_pConnect|hw_PipeDocument|hw_Root|hw_Unlock|hw_Username|GetImageSize|ImageArc|ImageChar|ImageCharUp|ImageColorAllocate|ImageColorTransparent|ImageCopyResized|ImageCreate|ImageCreateFromGif|ImageDashedLine|ImageDestroy|ImageFill|ImageFilledPolygon|ImageFilledRectangle|ImageFillToBorder|ImageFontHeight|ImageFontWidth|ImageGif|ImageInterlace|ImageLine|ImageLoadFont|ImagePolygon|ImageRectangle|ImageSetPixel|ImageString|ImageStringUp|ImageSX|ImageSY|ImageTTFBBox|ImageTTFText|ImageColorAt|ImageColorClosest|ImageColorExact|ImageColorResolve|ImageColorSet|ImageColorsForIndex|ImageColorsTotal|imap_append|imap_base64|imap_body|imap_check|imap_close|imap_createmailbox|imap_delete|imap_deletemailbox|imap_expunge|imap_fetchbody|imap_fetchstructure|imap_header|imap_headers|imap_listmailbox|imap_listsubscribed|imap_mail_copy|imap_mail_move|imap_num_msg|imap_num_recent|imap_open|imap_ping|imap_renamemailbox|imap_reopen|imap_subscribe|imap_undelete|imap_unsubscribe|imap_qprint|imap_8bit|imap_binary|imap_scanmailbox|imap_mailboxmsginfo|imap_rfc822_write_address|imap_rfc822_parse_adrlist|imap_setflag_full|imap_clearflag_full|imap_sort|imap_fetchheader|imap_uid|error_log|error_reporting|getenv|get_cfg_var|get_current_user|get_magic_quotes_gpc|get_magic_quotes_runtime|getlastmod|getmyinode|getmypid|getmyuid|getrusage|phpinfo|phpversion|putenv|set_magic_quotes_runtime|set_time_limit|ifx_connect|ifx_pconnect|ifx_close|ifx_query|ifx_prepare|ifx_do|ifx_error|ifx_errormsg|ifx_affected_rows|ifx_fetch_row|ifx_htmltbl_result|ifx_fieldtypes|ifx_fieldproperties|ifx_num_fields|ifx_num_rows|ifx_free_result|ifx_create_char|ifx_free_char|ifx_update_char|ifx_get_char|ifx_create_blob|ifx_copy_blob|ifx_free_blob|ifx_get_blob|ifx_update_blob|ifx_blobinfile_mode|ifx_textasvarchar|ifx_byteasvarchar|ifx_nullformat|ifxus_create_slob|ifx_free_slob|ifxus_close_slob|ifxus_open_slob|ifxus_tell_slob|ifxus_seek_slob|ifxus_read_slob|ifxus_write_slob|ibase_connect|ibase_pconnect|ibase_close|ibase_query|ibase_fetch_row|ibase_free_result|ibase_prepare|ibase_bind|ibase_execute|ibase_free_query|ibase_timefmt|ldap_add|ldap_bind|ldap_close|ldap_connect|ldap_count_entries|ldap_delete|ldap_dn2ufn|ldap_explode_dn|ldap_first_attribute|ldap_first_entry|ldap_free_result|ldap_get_attributes|ldap_get_dn|ldap_get_entries|ldap_get_values|ldap_list|ldap_modify|ldap_next_attribute|ldap_next_entry|ldap_read|ldap_search|ldap_unbind|mail|Abs|Acos|Asin|Atan|Atan2|base_convert|BinDec|Ceil|Cos|DecBin|DecHex|DecOct|Exp|Floor|getrandmax|HexDec|Log|Log10|max|min|mt_rand|mt_srand|mt_getrandmax|number_format|OctDec|pi|pow|rand|round|Sin|Sqrt|srand|Tan|connection_aborted|connection_status|connection_timeout|eval|extract|die|exit|function_exists|ignore_user_abort|iptcparse|leak|pack|register_shutdown_function|serialize|sleep|unpack|unserialize|uniqid|usleep|msql|msql_affected_rows|msql_close|msql_connect|msql_create_db|msql_createdb|msql_data_seek|msql_dbname|msql_drop_db|msql_dropdb|msql_error|msql_fetch_array|msql_fetch_field|msql_fetch_object|msql_fetch_row|msql_fieldname|msql_field_seek|msql_fieldtable|msql_fieldtype|msql_fieldflags|msql_fieldlen|msql_free_result|msql_freeresult|msql_list_fields|msql_listfields|msql_list_dbs|msql_listdbs|msql_list_tables|msql_listtables|msql_num_fields|msql_num_rows|msql_numfields|msql_numrows|msql_pconnect|msql_query|msql_regcase|msql_result|msql_select_db|msql_selectdb|msql_tablename|mssql_affected_rows|mssql_close|mssql_connect|mssql_data_seek|mssql_fetch_array|mssql_fetch_field|mssql_fetch_object|mssql_fetch_row|mssql_field_seek|mssql_free_result|mssql_num_fields|mssql_num_rows|mssql_pconnect|mssql_query|mssql_result|mssql_select_db|mysql_affected_rows|mysql_close|mysql_connect|mysql_create_db|mysql_data_seek|mysql_db_query|mysql_drop_db|mysql_errno|mysql_error|mysql_fetch_array|mysql_fetch_field|mysql_fetch_lengths|mysql_fetch_object|mysql_fetch_row|mysql_field_name|mysql_field_seek|mysql_field_table|mysql_field_type|mysql_field_flags|mysql_field_len|mysql_free_result|mysql_insert_id|mysql_list_fields|mysql_list_dbs|mysql_list_tables|mysql_num_fields|mysql_num_rows|mysql_pconnect|mysql_query|mysql_result|mysql_select_db|mysql_tablename|sybase_affected_rows|sybase_close|sybase_connect|sybase_data_seek|sybase_fetch_array|sybase_fetch_field|sybase_fetch_object|sybase_fetch_row|sybase_field_seek|sybase_free_result|sybase_num_fields|sybase_num_rows|sybase_pconnect|sybase_query|sybase_result|sybase_select_db|fsockopen|pfsockopen|set_socket_blocking|gethostbyaddr|gethostbyname|gethostbynamel|checkdnsrr|getmxrr|openlog|syslog|closelog|debugger_on|debugger_off|odbc_autocommit|odbc_binmode|odbc_close|odbc_close_all|odbc_commit|odbc_connect|odbc_cursor|odbc_do|odbc_exec|odbc_execute|odbc_fetch_into|odbc_fetch_row|odbc_field_name|odbc_field_type|odbc_field_len|odbc_free_result|odbc_longreadlen|odbc_num_fields|odbc_pconnect|odbc_prepare|odbc_num_rows|odbc_result|odbc_result_all|odbc_rollback|odbc_setoption|OCIDefineByName|OCIBindByName|OCILogon|OCILogOff|OCIExecute|OCICommit|OCIRollback|OCINumRows|OCIResult|OCIFetch|OCIFetchInto|OCIColumnIsNULL|OCIColumnSize|Ora_Bind|Ora_Close|Ora_ColumnName|Ora_ColumnType|Ora_Commit|Ora_CommitOff|Ora_CommitOn|Ora_Error|Ora_ErrorCode|Ora_Exec|Ora_Fetch|Ora_GetColumn|Ora_Logoff|Ora_Logon|Ora_Open|Ora_Parse|Ora_Rollback|PDF_get_info|PDF_set_info_creator|PDF_set_info_title|PDF_set_info_subject|PDF_set_info_keywords|PDF_set_info_author|PDF_open|PDF_close|PDF_begin_page|PDF_end_page|PDF_show|PDF_show_xy|PDF_set_font|PDF_set_leading|PDF_set_text_rendering|PDF_set_horiz_scaling|PDF_set_text_rise|PDF_set_text_matrix|PDF_set_text_pos|PDF_set_char_spacing|PDF_set_word_spacing|PDF_continue_text|PDF_stringwidth|PDF_save|PDF_restore|PDF_translate|PDF_scale|PDF_rotate|PDF_setflat|PDF_setlinejoin|PDF_setlinecap|PDF_setmiterlimit|PDF_setlinewidth|PDF_setdash|PDF_moveto|PDF_curveto|PDF_lineto|PDF_circle|PDF_arc|PDF_rect|PDF_closepath|PDF_stroke|PDF_closepath_stroke|PDF_fill|PDF_fill_stroke|PDF_closepath_fill_stroke|PDF_endpath|PDF_clip|PDF_setgray_fill|PDF_setgray_stroke|PDF_setgray|PDF_setrgbcolor_fill|PDF_setrgbcolor_stroke|PDF_setrgbcolor|PDF_add_outline|PDF_set_transition|PDF_set_duration|PDF_open_jpeg|PDF_close_image|PDF_place_image|PDF_put_image|PDF_execute_image|pg_Close|pg_cmdTuples|pg_Connect|pg_DBname|pg_ErrorMessage|pg_Exec|pg_Fetch_Array|pg_Fetch_Object|pg_Fetch_Row|pg_FieldIsNull|pg_FieldName|pg_FieldNum|pg_FieldPrtLen|pg_FieldSize|pg_FieldType|pg_FreeResult|pg_GetLastOid|pg_Host|pg_loclose|pg_locreate|pg_loopen|pg_loread|pg_loreadall|pg_lounlink|pg_lowrite|pg_NumFields|pg_NumRows|pg_Options|pg_pConnect|pg_Port|pg_Result|pg_tty|ereg|ereg_replace|eregi|eregi_replace|split|sql_regcase|sem_get|sem_acquire|sem_release|shm_attach|shm_detach|shm_remove|shm_put_var|shm_get_var|shm_remove_var|solid_close|solid_connect|solid_exec|solid_fetchrow|solid_fieldname|solid_fieldnum|solid_freeresult|solid_numfields|solid_numrows|solid_result|snmpget|snmpwalk|AddSlashes|Chop|Chr|chunk_split|convert_cyr_string|crypt|echo|explode|flush|get_meta_tags|htmlspecialchars|htmlentities|implode|join|ltrim|md5|nl2br|Ord|parse_str|print|printf|quoted_printable_decode|QuoteMeta|rawurldecode|rawurlencode|setlocale|similar_text|soundex|sprintf|strchr|strcmp|strcspn|StripSlashes|strlen|strrpos|strpos|strrchr|strrev|strspn|strstr|strtok|strtolower|strtoupper|str_replace|strtr|substr|trim|ucfirst|ucwords|parse_url|urldecode|urlencode|base64_encode|base64_decode|gettype|intval|doubleval|empty|is_array|is_double|is_float|is_int|is_integer|is_long|is_object|is_real|is_string|isset|settype|strval|unset|vm_adduser|vm_addalias|vm_passwd|vm_delalias|vm_deluser|wddx_serialize_value|wddx_serialize_vars|wddx_packet_start|wddx_packet_end|wddx_add_vars|wddx_deserialize|gzclose|gzeof|gzfile|gzgetc|gzgets|gzgetss|gzopen|gzpassthru|gzputs|gzread|gzrewind|gzseek|gztell|readgzfile|gzwrite|xml_parser_create|xml_set_element_handler|xml_set_character_data_handler|xml_set_processing_instruction_handler|xml_set_default_handler|xml_set_unparsed_entity_decl_handler|xml_set_notation_decl_handler|xml_set_external_entity_ref_handler|xml_parse|xml_get_error_code|xml_error_string|xml_get_current_line_number|xml_get_current_column_number|xml_get_current_byte_index|xml_parser_free|xml_parser_set_option|xml_parser_get_option|utf8_decode|utf8_encode|-[rwxoRWXOezsfdlpSbctugkTBMAC])>":::Subroutine:php3:\n\
64 variables:"[$][a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*":::Identifier:php3:\n\
65 variables in strings:"[$][a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*":::Identifier:double quote strings:\n\
66 braces and parens:"[\\[\\]{}\\(\\)]":::Keyword:php3:\n\
67 }
68 nedit.languageModes: PHP-HTML:.php .php3 .php4 .phps .phpc .phtml::::::"'"";`!%^&*()-=+{}[]\\|<>,./?:"\n\

  ViewVC Help
Powered by ViewVC 1.1.17