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