cfm.php (17383B)
1 <?php 2 /************************************************************************************* 3 * cfm.php 4 * ------- 5 * Author: Diego () 6 * Copyright: (c) 2006 Diego 7 * Release Version: 1.0.7.20 8 * Date Started: 2006/02/25 9 * 10 * ColdFusion language file for GeSHi. 11 * 12 * CHANGES 13 * ------- 14 * 2006/02/25 (1.0.0) 15 * - First Release 16 * 17 * TODO (updated 2006/02/25) 18 * ------------------------- 19 * 20 ************************************************************************************* 21 * 22 * This file is part of GeSHi. 23 * 24 * GeSHi is free software; you can redistribute it and/or modify 25 * it under the terms of the GNU General Public License as published by 26 * the Free Software Foundation; either version 2 of the License, or 27 * (at your option) any later version. 28 * 29 * GeSHi is distributed in the hope that it will be useful, 30 * but WITHOUT ANY WARRANTY; without even the implied warranty of 31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 32 * GNU General Public License for more details. 33 * 34 * You should have received a copy of the GNU General Public License 35 * along with GeSHi; if not, write to the Free Software 36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 37 * 38 ************************************************************************************/ 39 40 $language_data = array ( 41 'LANG_NAME' => 'ColdFusion', 42 'COMMENT_SINGLE' => array(1 => '//'), 43 'COMMENT_MULTI' => array('<!--' => '-->','<!---' => '--->', '/*' => '*/'), 44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 45 'QUOTEMARKS' => array("'", '"'), 46 'ESCAPE_CHAR' => '\\', 47 'KEYWORDS' => array( 48 /* CFM Tags */ 49 1 => array( 50 '<cfabort', '<cfapplet', '<cfapplication', '<cfargument', '<cfassociate', '<<cfbreak>', 51 '<cfcache', '<cfcase', '<cfcatch', '</cfcatch>', '<cfchart', '</cfchart>', '<cfchartdata', 52 '<cfchartseries', '</cfchartseries>', '<cfcol', '<cfcollection', '<cfcomponent', '</cfcomponent>', 53 '<cfcontent', '<cfcookie', '</cfdefaultcase>', '<cfdirectory', '<cfdocument', '</cfdocument>', 54 '<cfdocumentitem', '</cfdocumentitem>', '<cfdocumentsection', '</cfdocumentsection>', '<cfdump', 55 '<cfelse', '<cfelseif', '<cferror', '<cfexecute', '</cfexecute>', '<cfexit', '<cffile', 56 '<cfflush', '<cfform', '</cfform>', '<cfformgroup', '</cfformgroup', '<cfformitem', 57 '</cfformitem>', '<cfftp', '<cffunction', '</cffunction>', '<cfgrid', '</cfgrid>', 58 '<cfgridcolumn', '<cfgridrow', '<cfgridupdate', '<cfheader', '<cfhtmlhead', '<cfhttp', 59 '</cfhttp>', '<cfhttpparam', '<cfif', '</cfif>', '<cfimport', '<cfinclude', '<cfindex', 60 '<cfinput', '<cfinsert', '<cfinvoke', '<cfinvokeargument', '<cfldap', '<cflocation', '<cflock', 61 '</cflock>', '<cflog', '<cflogin', '</cflogin>', '<cfloginuser', '<cflogout', '<cfloop', 62 '</cfloop>', '<cfmail', '</cfmail>', '<cfmailparam', '<cfmailpart', '</cfmailpart>', 63 '<cfmodule', '<cfNTauthenticate', '<cfobject', '<cfobjectcache', '<cfoutput>', '<cfoutput', '</cfoutput>', 64 '<cfparam', '<cfpop', '<cfprocessingdirective', '</cfprocessingdirective>', '<cfprocparam', 65 '<cfprocresult', '<cfproperty', '<cfquery', '</cfquery>', '<cfqueryparam', '<cfregistry', 66 '</cfregistry>', '<cfreport', '</cfreport>', '<cfreportparam', '</cfreportparam>', 67 '<cfrethrow', '<cfreturn', '<cfsavecontent', '</cfsavecontent>', '<cfschedule', '<cfscript', '<cfscript>', 68 '</cfscript>', '<cfsearch', '<cfselect', '</cfselect>', '<cfset', '<cfsetting', '<cfsilent', 69 '</cfsilent>', '<cfstoredproc', '</cfstoredproc>', '<cfswitch', '</cfswitch>', '<cftable', 70 '</cftable>', '<cftextarea', '</cftextarea>', '<cfthrow', '<cftimer', '</cftimer>', 71 '<cftrace', '</cftrace>', '<cftransaction', '</cftransaction>', '<cftree', '</cftree>', 72 '<cftreeitem', '<cftry', '</cftry>', '<cfupdate', '<cfwddx','<','>' 73 ), 74 /* HTML Tags */ 75 2 => array( 76 '<a>', '<abbr>', '<acronym>', '<address>', '<applet>', 77 '<a', '<abbr', '<acronym', '<address', '<applet', 78 '</a>', '</abbr>', '</acronym>', '</address>', '</applet>', 79 '</a', '</abbr', '</acronym', '</address', '</applet', 80 81 '<base>', '<basefont>', '<bdo>', '<big>', '<blockquote>', '<body>', '<br>', '<button>', '<b>', 82 '<base', '<basefont', '<bdo', '<big', '<blockquote', '<body', '<br', '<button', '<b', 83 '</base>', '</basefont>', '</bdo>', '</big>', '</blockquote>', '</body>', '</br>', '</button>', '</b>', 84 '</base', '</basefont', '</bdo', '</big', '</blockquote', '</body', '</br','<br />', '</button', '</b', 85 86 '<caption>', '<center>', '<cite>', '<code>', '<colgroup>', '<col>', 87 '<caption', '<center', '<cite', '<code', '<colgroup', '<col', 88 '</caption>', '</center>', '</cite>', '</code>', '</colgroup>', '</col>', 89 '</caption', '</center', '</cite', '</code', '</colgroup', '</col', 90 91 '<dd>', '<del>', '<dfn>', '<dir>', '<div>', '<dl>', '<dt>', 92 '<dd', '<del', '<dfn', '<dir', '<div', '<dl', '<dt', 93 '</dd>', '</del>', '</dfn>', '</dir>', '</div>', '</dl>', '</dt>', 94 '</dd', '</del', '</dfn', '</dir', '</div', '</dl', '</dt', 95 96 '<em>', 97 '<em', 98 '</em>', 99 '</em', 100 101 '<fieldset>', '<font>', '<form>', '<frame>', '<frameset>', 102 '<fieldset', '<font', '<form', '<frame', '<frameset', 103 '</fieldset>', '</font>', '</form>', '</frame>', '</frameset>', 104 '</fieldset', '</font', '</form', '</frame', '</frameset', 105 106 '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<head>', '<hr>', '<html>', 107 '<h1', '<h2', '<h3', '<h4', '<h5', '<h6', '<head', '<hr', '<html', 108 '</h1>', '</h2>', '</h3>', '</h4>', '</h5>', '</h6>', '</head>', '</hr>', '</html>', 109 '</h1', '</h2', '</h3', '</h4', '</h5', '</h6', '</head', '</hr', '</html', 110 111 '<iframe>', '<ilayer>', '<img>', '<input>', '<ins>', '<isindex>', '<i>', 112 '<iframe', '<ilayer', '<img', '<input', '<ins', '<isindex', '<i', 113 '</iframe>', '</ilayer>', '</img>', '</input>', '</ins>', '</isindex>', '</i>', 114 '</iframe', '</ilayer', '</img', '</input', '</ins', '</isindex', '</i', 115 116 '<kbd>', 117 '<kbd', 118 '&t;/kbd>', 119 '</kbd', 120 121 '<label>', '<legend>', '<link>', '<li>', 122 '<label', '<legend', '<link', '<li', 123 '</label>', '</legend>', '</link>', '</li>', 124 '</label', '</legend', '</link', '</li', 125 126 '<map>', '<meta>', 127 '<map', '<meta', 128 '</map>', '</meta>', 129 '</map', '</meta', 130 131 '<noframes>', '<noscript>', 132 '<noframes', '<noscript', 133 '</noframes>', '</noscript>', 134 '</noframes', '</noscript', 135 136 '<object>', '<ol>', '<optgroup>', '<option>', 137 '<object', '<ol', '<optgroup', '<option', 138 '</object>', '</ol>', '</optgroup>', '</option>', 139 '</object', '</ol', '</optgroup', '</option', 140 141 '<param>', '<pre>', '<p>', 142 '<param', '<pre', '<p', 143 '</param>', '</pre>', '</p>', 144 '</param', '</pre', '</p', 145 146 '<q>', 147 '<q', 148 '</q>', 149 '</q', 150 151 '<samp>', '<script>', '<select>', '<small>', '<span>', '<strike>', '<strong>', '<style>', '<sub>', '<sup>', '<s>', 152 '<samp', '<script', '<select', '<small', '<span', '<strike', '<strong', '<style', '<sub', '<sup', '<s', 153 '</samp>', '</script>', '</select>', '</small>', '</span>', '</strike>', '</strong>', '</style>', '</sub>', '</sup>', '</s>', 154 '</samp', '</script', '</select', '</small', '</span', '</strike', '</strong', '</style', '</sub', '</sup', '</s', 155 156 '<table>', '<tbody>', '<td>', '<textarea>', '<text>', '<tfoot>', '<thead>', '<th>', '<title>', '<tr>', '<tt>', 157 '<table', '<tbody', '<td', '<textarea', '<text', '<tfoot', '<tfoot', '<thead', '<th', '<title', '<tr', '<tt', 158 '</table>', '</tbody>', '</td>', '</textarea>', '</text>', '</tfoot>', '</thead', '</tfoot', '</th>', '</title>', '</tr>', '</tt>', 159 '</table', '</tbody', '</td', '</textarea', '</text', '</tfoot', '</tfoot', '</thead', '</th', '</title', '</tr', '</tt', 160 161 '<ul>', '<u>', 162 '<ul', '<u', 163 '</ul>', '</ul>', 164 '</ul', '</u', 165 166 '<var>', 167 '<var', 168 '</var>', 169 '</var', 170 171 '>', '<' 172 ), 173 /* HTML attributes */ 174 3 => array( 175 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', 176 'background', 'bgcolor', 'border', 177 'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords', 178 'data', 'datetime', 'declare', 'defer', 'dir', 'disabled', 179 'enctype', 180 'face', 'for', 'frame', 'frameborder', 181 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', 182 'id', 'ismap', 183 'label', 'lang', 'language', 'link', 'longdesc', 184 'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple', 185 'name', 'nohref', 'noresize', 'noshade', 'nowrap', 186 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload', 187 'profile', 'prompt', 188 'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules', 189 'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary', 190 'tabindex', 'target', 'text', 'title', 'type', 191 'usemap', 192 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', 193 'width' 194 ), 195 /* CFM Script delimeters */ 196 4 => array( 197 'var', 'function', 'while', 'if','else' 198 ), 199 /* CFM Functions */ 200 5 => array( 201 'Abs', 'GetFunctionList', 'LSTimeFormat','ACos','GetGatewayHelper','LTrim','AddSOAPRequestHeader','GetHttpRequestData', 202 'Max','AddSOAPResponseHeader','GetHttpTimeString','Mid','ArrayAppend','GetLocale','Min','ArrayAvg','GetLocaleDisplayName', 203 'Minute','ArrayClear','GetMetaData','Month','ArrayDeleteAt','GetMetricData','MonthAsString','ArrayInsertAt','GetPageContext', 204 'Now','ArrayIsEmpty','GetProfileSections','NumberFormat','ArrayLen','GetProfileString','ParagraphFormat','ArrayMax', 205 'GetLocalHostIP','ParseDateTime','ArrayMin','GetSOAPRequest','Pi','ArrayNew','GetSOAPRequestHeader','PreserveSingleQuotes', 206 'ArrayPrepend','GetSOAPResponse','Quarter','ArrayResize','GetSOAPResponseHeader','QueryAddColumn','ArraySet', 207 'GetTempDirectory','QueryAddRow','ArraySort','GetTempDirectory','QueryNew','ArraySum','GetTempFile','QuerySetCell', 208 'ArraySwap','GetTickCount','QuotedValueList','ArrayToList','GetTimeZoneInfo','Rand','Asc','GetToken','Randomize', 209 'ASin','Hash','RandRange','Atn','Hour','REFind','BinaryDecode','HTMLCodeFormat','REFindNoCase','BinaryEncode', 210 'HTMLEditFormat','ReleaseComObject','BitAnd','IIf','RemoveChars','BitMaskClear','IncrementValue','RepeatString', 211 'BitMaskRead','InputBaseN','Replace','BitMaskSet','Insert','ReplaceList','BitNot','Int','ReplaceNoCase','BitOr', 212 'IsArray','REReplace','BitSHLN','IsBinary','REReplaceNoCase','BitSHRN','IsBoolean','Reverse','BitXor','IsCustomFunction', 213 'Right','Ceiling','IsDate','RJustify','CharsetDecode','IsDebugMode','Round','CharsetEncode','IsDefined','RTrim', 214 'Chr','IsLeapYear','Second','CJustify','IsLocalHost','SendGatewayMessage','Compare','IsNumeric','SetEncoding', 215 'CompareNoCase','IsNumericDate','SetLocale','Cos','IsObject','SetProfileString','CreateDate','IsQuery','SetVariable', 216 'CreateDateTime','IsSimpleValue','Sgn','CreateObject','IsSOAPRequest','Sin','CreateODBCDate','IsStruct','SpanExcluding', 217 'CreateODBCDateTime','IsUserInRole','SpanIncluding','CreateODBCTime','IsValid','Sqr','CreateTime','IsWDDX','StripCR', 218 'CreateTimeSpan','IsXML','StructAppend','CreateUUID','IsXmlAttribute','StructClear','DateAdd','IsXmlDoc','StructCopy', 219 'DateCompare','IsXmlElem','StructCount','DateConvert','IsXmlNode','StructDelete','DateDiff','IsXmlRoot','StructFind', 220 'DateFormat','JavaCast','StructFindKey','DatePart','JSStringFormat','StructFindValue','Day','LCase','StructGet', 221 'DayOfWeek','Left','StructInsert','DayOfWeekAsString','Len','StructIsEmpty','DayOfYear','ListAppend','StructKeyArray', 222 'DaysInMonth','ListChangeDelims','StructKeyExists','DaysInYear','ListContains','StructKeyList','DE','ListContainsNoCase', 223 'StructNew','DecimalFormat','ListDeleteAt','StructSort','DecrementValue','ListFind','StructUpdate','Decrypt','ListFindNoCase', 224 'Tan','DecryptBinary','ListFirst','TimeFormat','DeleteClientVariable','ListGetAt','ToBase64','DirectoryExists', 225 'ListInsertAt','ToBinary','DollarFormat','ListLast','ToScript','Duplicate','ListLen','ToString','Encrypt','ListPrepend', 226 'Trim','EncryptBinary','ListQualify','UCase','Evaluate','ListRest','URLDecode','Exp','ListSetAt','URLEncodedFormat', 227 'ExpandPath','ListSort','URLSessionFormat','FileExists','ListToArray','Val','Find','ListValueCount','ValueList', 228 'FindNoCase','ListValueCountNoCase','Week','FindOneOf','LJustify','Wrap','FirstDayOfMonth','Log','WriteOutput', 229 'Fix','Log10','XmlChildPos','FormatBaseN','LSCurrencyFormat','XmlElemNew','GetAuthUser','LSDateFormat','XmlFormat', 230 'GetBaseTagData','LSEuroCurrencyFormat','XmlGetNodeType','GetBaseTagList','LSIsCurrency','XmlNew','GetBaseTemplatePath', 231 'LSIsDate','XmlParse','GetClientVariablesList','LSIsNumeric','XmlSearch','GetCurrentTemplatePath','LSNumberFormat', 232 'XmlTransform','GetDirectoryFromPath','LSParseCurrency','XmlValidate','GetEncoding','LSParseDateTime','Year', 233 'GetException','LSParseEuroCurrency','YesNoFormat','GetFileFromPath','LSParseNumber' 234 ), 235 /* CFM Attributes */ 236 6 => array( 237 '=','&','name','dbtype','connectstring','datasource','username','password','query','delimeter','description','required','hint','default','access','from','to','list','index' 238 ) 239 ), 240 'SYMBOLS' => array( 241 '/', '=', 'EQ', 'GT', 'LT', 'GTE', 'LTE', 'IS', 'LIKE', '&', '{', '}', '(', ')', '[', ']','gt','lt' 242 ), 243 'CASE_SENSITIVE' => array( 244 GESHI_COMMENTS => false, 245 1 => false, 246 2 => false, 247 3 => false, 248 4 => false, 249 5 => false, 250 6 => false 251 ), 252 'STYLES' => array( 253 'KEYWORDS' => array( 254 1 => 'color: #990000;', 255 2 => 'color: #000000; font-weight: bold;', 256 3 => 'color: #0000FF;', 257 4 => 'color: #000000; font-weight: bold;', 258 5 => 'color: #0000FF;', 259 6 => 'color: #0000FF' 260 ), 261 'COMMENTS' => array( 262 1 => 'color: #808080; font-style: italic;', 263 'MULTI' => 'color: #808080; font-style: italic; background-color:#FFFF99;' 264 ), 265 'ESCAPE_CHAR' => array( 266 0 => 'color: #000099; font-weight: bold;' 267 ), 268 'BRACKETS' => array( 269 0 => 'color: #0000FF;' 270 ), 271 'STRINGS' => array( 272 0 => 'color: #009900;' 273 ), 274 'NUMBERS' => array( 275 0 => 'color: #FF0000;' 276 ), 277 'METHODS' => array( 278 ), 279 'SYMBOLS' => array( 280 0 => 'color: #0000FF;' 281 ), 282 'SCRIPT' => array( 283 0 => 'color: #00bbdd;', 284 1 => 'color: #0000FF;', 285 2 => 'color: #000099;', 286 3 => 'color: #333333;' 287 ), 288 'REGEXPS' => array( 289 ) 290 ), 291 'URLS' => array( 292 1 => '', 293 2 => '', 294 3 => '', 295 4 => '' 296 ), 297 'OOLANG' => false, 298 'OBJECT_SPLITTERS' => array( 299 ), 300 'REGEXPS' => array( 301 ), 302 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 303 'SCRIPT_DELIMITERS' => array( 304 0 => array( 305 '<!DOCTYPE' => '>' 306 ), 307 1 => array( 308 '#' => '#' 309 ), 310 2 => array( 311 '<cfscript>' => '</cfscript>;' 312 ), 313 3 => array( 314 '<' => '>' 315 ) 316 ), 317 'HIGHLIGHT_STRICT_BLOCK' => array( 318 0 => false, 319 1 => true, 320 2 => true, 321 3 => true 322 ) 323 ); 324 325 ?>