jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [asp.php] - Blame information for rev 1

 

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

Powered by WebSVN 2.2.1