Merging the updates from the GeSHi vendor to the trunk
[viewsvn.git] / includes / geshi / geshi / csharp.php
1 <?php
2 /*************************************************************************************
3 * csharp.php
4 * ----------
5 * Author: Alan Juden (alan@judenware.org)
6 * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
7 * Release Version: 1.0.7.19
8 * Date Started: 2004/06/04
9 *
10 * C# language file for GeSHi.
11 *
12 * CHANGES
13 * -------
14 * 2005/01/05 (1.0.1)
15 * - Used hardquote support for @"..." strings (Cliff Stanford)
16 * 2004/11/27 (1.0.0)
17 * - Initial release
18 *
19 * TODO (updated 2004/11/27)
20 * -------------------------
21 *
22 *************************************************************************************
23 *
24 * This file is part of GeSHi.
25 *
26 * GeSHi is free software; you can redistribute it and/or modify
27 * it under the terms of the GNU General Public License as published by
28 * the Free Software Foundation; either version 2 of the License, or
29 * (at your option) any later version.
30 *
31 * GeSHi is distributed in the hope that it will be useful,
32 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 * GNU General Public License for more details.
35 *
36 * You should have received a copy of the GNU General Public License
37 * along with GeSHi; if not, write to the Free Software
38 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39 *
40 ************************************************************************************/
41
42 $language_data = array (
43 'LANG_NAME' => 'C#',
44 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
45 'COMMENT_MULTI' => array('/*' => '*/'),
46 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
47 'QUOTEMARKS' => array("'", '"'),
48 'HARDQUOTE' => array('@"', '"'),
49 'HARDESCAPE' => array('""'),
50 'ESCAPE_CHAR' => '\\',
51 'KEYWORDS' => array(
52 1 => array(
53 'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue',
54 'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
55 'finally', 'fixed', 'for', 'foreach', 'goto', 'if', 'implicit',
56 'in', 'internal', 'lock', 'namespace', 'null', 'operator', 'out',
57 'override', 'params', 'private', 'protected', 'public', 'readonly',
58 'ref', 'return', 'sealed', 'stackalloc', 'static', 'switch', 'this',
59 'throw', 'true', 'try', 'unsafe', 'using', 'virtual', 'void', 'while'
60 ),
61 2 => array(
62 '#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
63 '#line', '#region', '#undef', '#warning'
64 ),
65 3 => array(
66 'checked', 'is', 'new', 'sizeof', 'typeof', 'unchecked'
67 ),
68 4 => array(
69 'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
70 'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
71 'short', 'string', 'struct', 'uint', 'ulong', 'ushort'
72 ),
73 5 => array(
74 'Microsoft.Win32',
75 'System',
76 'System.CodeDOM',
77 'System.CodeDOM.Compiler',
78 'System.Collections',
79 'System.Collections.Bases',
80 'System.ComponentModel',
81 'System.ComponentModel.Design',
82 'System.ComponentModel.Design.CodeModel',
83 'System.Configuration',
84 'System.Configuration.Assemblies',
85 'System.Configuration.Core',
86 'System.Configuration.Install',
87 'System.Configuration.Interceptors',
88 'System.Configuration.Schema',
89 'System.Configuration.Web',
90 'System.Core',
91 'System.Data',
92 'System.Data.ADO',
93 'System.Data.Design',
94 'System.Data.Internal',
95 'System.Data.SQL',
96 'System.Data.SQLTypes',
97 'System.Data.XML',
98 'System.Data.XML.DOM',
99 'System.Data.XML.XPath',
100 'System.Data.XML.XSLT',
101 'System.Diagnostics',
102 'System.Diagnostics.SymbolStore',
103 'System.DirectoryServices',
104 'System.Drawing',
105 'System.Drawing.Design',
106 'System.Drawing.Drawing2D',
107 'System.Drawing.Imaging',
108 'System.Drawing.Printing',
109 'System.Drawing.Text',
110 'System.Globalization',
111 'System.IO',
112 'System.IO.IsolatedStorage',
113 'System.Messaging',
114 'System.Net',
115 'System.Net.Sockets',
116 'System.NewXml',
117 'System.NewXml.XPath',
118 'System.NewXml.Xsl',
119 'System.Reflection',
120 'System.Reflection.Emit',
121 'System.Resources',
122 'System.Runtime.InteropServices',
123 'System.Runtime.InteropServices.Expando',
124 'System.Runtime.Remoting',
125 'System.Runtime.Serialization',
126 'System.Runtime.Serialization.Formatters',
127 'System.Runtime.Serialization.Formatters.Binary',
128 'System.Security',
129 'System.Security.Cryptography',
130 'System.Security.Cryptography.X509Certificates',
131 'System.Security.Permissions',
132 'System.Security.Policy',
133 'System.Security.Principal',
134 'System.ServiceProcess',
135 'System.Text',
136 'System.Text.RegularExpressions',
137 'System.Threading',
138 'System.Timers',
139 'System.Web',
140 'System.Web.Caching',
141 'System.Web.Configuration',
142 'System.Web.Security',
143 'System.Web.Services',
144 'System.Web.Services.Description',
145 'System.Web.Services.Discovery',
146 'System.Web.Services.Protocols',
147 'System.Web.UI',
148 'System.Web.UI.Design',
149 'System.Web.UI.Design.WebControls',
150 'System.Web.UI.Design.WebControls.ListControls',
151 'System.Web.UI.HtmlControls',
152 'System.Web.UI.WebControls',
153 'System.WinForms',
154 'System.WinForms.ComponentModel',
155 'System.WinForms.Design',
156 'System.Xml',
157 'System.Xml.Serialization',
158 'System.Xml.Serialization.Code',
159 'System.Xml.Serialization.Schema'
160 ),
161 ),
162 'SYMBOLS' => array(
163 '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
164 '(', ')', '{', '}', '[', ']'
165 ),
166 'CASE_SENSITIVE' => array(
167 GESHI_COMMENTS => true,
168 1 => false,
169 2 => false,
170 3 => false,
171 4 => false,
172 5 => false,
173 ),
174 'STYLES' => array(
175 'KEYWORDS' => array(
176 1 => 'color: #0600FF;',
177 2 => 'color: #FF8000; font-weight: bold;',
178 3 => 'color: #008000;',
179 4 => 'color: #FF0000;',
180 5 => 'color: #000000;'
181 ),
182 'COMMENTS' => array(
183 1 => 'color: #008080; font-style: italic;',
184 2 => 'color: #008080;',
185 'MULTI' => 'color: #008080; font-style: italic;'
186 ),
187 'ESCAPE_CHAR' => array(
188 0 => 'color: #008080; font-weight: bold;'
189 ),
190 'BRACKETS' => array(
191 0 => 'color: #000000;'
192 ),
193 'STRINGS' => array(
194 0 => 'color: #808080;'
195 ),
196 'NUMBERS' => array(
197 0 => 'color: #FF0000;'
198 ),
199 'METHODS' => array(
200 1 => 'color: #0000FF;',
201 2 => 'color: #0000FF;'
202 ),
203 'SYMBOLS' => array(
204 0 => 'color: #008000;'
205 ),
206 'REGEXPS' => array(
207 ),
208 'SCRIPT' => array(
209 )
210 ),
211 'URLS' => array(
212 1 => '',
213 2 => '',
214 3 => 'http://www.google.com/search?q={FNAME}+msdn.microsoft.com',
215 4 => ''
216 ),
217 'OOLANG' => true,
218 'OBJECT_SPLITTERS' => array(
219 1 => '.',
220 2 => '::'
221 ),
222 'REGEXPS' => array(
223 ),
224 'STRICT_MODE_APPLIES' => GESHI_NEVER,
225 'SCRIPT_DELIMITERS' => array(
226 ),
227 'HIGHLIGHT_STRICT_BLOCK' => array(
228 )
229 );
230
231 ?>