2 /*************************************************************************************
6 * Copyright: (c) 2006 Diego
7 * Release Version: 1.0.7.19
8 * Date Started: 2006/02/25
10 * ColdFusion language file for GeSHi.
17 * TODO (updated 2006/02/25)
18 * -------------------------
20 *************************************************************************************
22 * This file is part of GeSHi.
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.
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.
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
38 ************************************************************************************/
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' => '\\',
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','<','>'
76 '<a>', '<abbr>', '<acronym>', '<address>', '<applet>',
77 '<a', '<abbr', '<acronym', '<address', '<applet',
78 '</a>', '</abbr>', '</acronym>', '</address>', '</applet>',
79 '</a', '</abbr', '</acronym', '</address', '</applet',
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',
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',
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',
101 '<fieldset>', '<font>', '<form>', '<frame>', '<frameset>',
102 '<fieldset', '<font', '<form', '<frame', '<frameset',
103 '</fieldset>', '</font>', '</form>', '</frame>', '</frameset>',
104 '</fieldset', '</font', '</form', '</frame', '</frameset',
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',
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',
121 '<label>', '<legend>', '<link>', '<li>',
122 '<label', '<legend', '<link', '<li',
123 '</label>', '</legend>', '</link>', '</li>',
124 '</label', '</legend', '</link', '</li',
126 '<map>', '<meta>',
127 '<map', '<meta',
128 '</map>', '</meta>',
129 '</map', '</meta',
131 '<noframes>', '<noscript>',
132 '<noframes', '<noscript',
133 '</noframes>', '</noscript>',
134 '</noframes', '</noscript',
136 '<object>', '<ol>', '<optgroup>', '<option>',
137 '<object', '<ol', '<optgroup', '<option',
138 '</object>', '</ol>', '</optgroup>', '</option>',
139 '</object', '</ol', '</optgroup', '</option',
141 '<param>', '<pre>', '<p>',
142 '<param', '<pre', '<p',
143 '</param>', '</pre>', '</p>',
144 '</param', '</pre', '</p',
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',
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',
161 '<ul>', '<u>',
163 '</ul>', '</ul>',
173 /* HTML attributes */
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',
180 'face', 'for', 'frame', 'frameborder',
181 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
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',
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',
192 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
195 /* CFM Script delimeters */
197 'var', 'function', 'while', 'if','else'
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'
237 '=','&','name','dbtype','connectstring','datasource','username','password','query','delimeter','description','required','hint','default','access','from','to','list','index'
241 '/', '=', 'EQ', 'GT', 'LT', 'GTE', 'LTE', 'IS', 'LIKE', '&', '{', '}', '(', ')', '[', ']','gt','lt'
243 'CASE_SENSITIVE' => array(
244 GESHI_COMMENTS
=> false
,
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'
262 1 => 'color: #808080; font-style: italic;',
263 'MULTI' => 'color: #808080; font-style: italic; background-color:#FFFF99;'
265 'ESCAPE_CHAR' => array(
266 0 => 'color: #000099; font-weight: bold;'
269 0 => 'color: #0000FF;'
272 0 => 'color: #009900;'
275 0 => 'color: #FF0000;'
280 0 => 'color: #0000FF;'
283 0 => 'color: #00bbdd;',
284 1 => 'color: #0000FF;',
285 2 => 'color: #000099;',
286 3 => 'color: #333333;'
298 'OBJECT_SPLITTERS' => array(
302 'STRICT_MODE_APPLIES' => GESHI_ALWAYS
,
303 'SCRIPT_DELIMITERS' => array(
311 '<cfscript>' => '</cfscript>;'
317 'HIGHLIGHT_STRICT_BLOCK' => array(