Updating GeSHi to latest version, 1.0.7.6
[viewsvn.git] / includes / geshi / geshi / asp.php
1 <?php
2 /*************************************************************************************
3 * asp.php
4 * --------
5 * Author: Amit Gupta (http://blog.igeek.info/)
6 * Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.6
8 * CVS Revision Version: $Revision: 1.7 $
9 * Date Started: 2004/08/13
10 * Last Modified: $Date: 2005/12/30 04:48:03 $
11 *
12 * ASP language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2005/12/30 (1.0.3)
17 * - Strings only delimited by ", comments by '
18 * 2004/11/27 (1.0.2)
19 * - Added support for multiple object splitters
20 * 2004/10/27 (1.0.1)
21 * - Added support for URLs
22 * 2004/08/13 (1.0.0)
23 * - First Release
24 *
25 * TODO (updated 2004/11/27)
26 * -------------------------
27 * * Include all the functions, keywords etc that I have missed
28 *
29 *************************************************************************************
30 *
31 * This file is part of GeSHi.
32 *
33 * GeSHi is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
35 * the Free Software Foundation; either version 2 of the License, or
36 * (at your option) any later version.
37 *
38 * GeSHi is distributed in the hope that it will be useful,
39 * but WITHOUT ANY WARRANTY; without even the implied warranty of
40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 * GNU General Public License for more details.
42 *
43 * You should have received a copy of the GNU General Public License
44 * along with GeSHi; if not, write to the Free Software
45 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46 *
47 ************************************************************************************/
48
49 $language_data = array (
50 'LANG_NAME' => 'ASP',
51 'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
52 'COMMENT_MULTI' => array('/*' => '*/'),
53 'CASE_KEYWORDS' => 0,
54 'QUOTEMARKS' => array('"'),
55 'ESCAPE_CHAR' => '\\',
56 'KEYWORDS' => array(
57 1 => array(
58 'include', 'file', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
59 'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
60 'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
61 'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
62 'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
63 'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
64 ),
65 2 => array(
66 'Null', 'Nothing', 'And',
67 'False', '&lt;%', '%&gt;',
68 '&lt;script language=', '&lt;/script&gt;',
69 'True', 'var', 'Or', 'BOF', 'EOF',
70 'Function', 'Class', 'New', 'Sub'
71 ),
72 3 => array(
73 'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
74 'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
75 'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
76 'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
77 'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
78 'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
79 'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
80 )
81 ),
82 'CASE_SENSITIVE' => array(
83 GESHI_COMMENTS => false,
84 1 => false,
85 2 => false,
86 3 => false,
87 ),
88 'STYLES' => array(
89 'KEYWORDS' => array(
90 1 => 'color: #990099; font-weight: bold;',
91 2 => 'color: #0000ff; font-weight: bold;',
92 3 => 'color: #330066;'
93 ),
94 'COMMENTS' => array(
95 1 => 'color: #008000;',
96 2 => 'color: #ff6600;',
97 'MULTI' => 'color: #008000;'
98 ),
99 'ESCAPE_CHAR' => array(
100 0 => 'color: #000099; font-weight: bold;'
101 ),
102 'BRACKETS' => array(
103 0 => 'color: #006600; font-weight:bold'
104 ),
105 'STRINGS' => array(
106 0 => 'color: #cc0000;'
107 ),
108 'NUMBERS' => array(
109 0 => 'color: #800000;'
110 ),
111 'METHODS' => array(
112 1 => 'color: #9900cc;'
113 ),
114 'SYMBOLS' => array(
115 0 => 'color: #006600; font-weight: bold'
116 ),
117 'REGEXPS' => array(
118 ),
119 'SCRIPT' => array(
120 0 => '',
121 1 => '',
122 2 => '',
123 )
124 ),
125 'URLS' => array(
126 1 => '',
127 2 => '',
128 3 => ''
129 ),
130 'OOLANG' => true,
131 'OBJECT_SPLITTERS' => array(
132 1 => '.'
133 ),
134 'REGEXPS' => array(
135 ),
136 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
137 'SCRIPT_DELIMITERS' => array(
138 0 => array(
139 '<%' => '%>'
140 ),
141 1 => array(
142 '<script language="vbscript" runat="server">' => '</script>'
143 ),
144 2 => array(
145 '<script language="javascript" runat="server">' => '</script>'
146 )
147 ),
148 'HIGHLIGHT_STRICT_BLOCK' => array(
149 0 => true,
150 1 => true,
151 2 => true,
152 )
153 );
154
155 ?>