csharp.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * csharp.php
00004  * ----------
00005  * Author: Alan Juden (alan@judenware.org)
00006  * Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/06/04
00009  *
00010  * C# language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/01/05 (1.0.1)
00015  *  -  Used hardquote support for @"..." strings (Cliff Stanford)
00016  * 2004/11/27 (1.0.0)
00017  *  -  Initial release
00018  *
00019  * TODO (updated 2004/11/27)
00020  * -------------------------
00021  *
00022  *************************************************************************************
00023  *
00024  *     This file is part of GeSHi.
00025  *
00026  *   GeSHi is free software; you can redistribute it and/or modify
00027  *   it under the terms of the GNU General Public License as published by
00028  *   the Free Software Foundation; either version 2 of the License, or
00029  *   (at your option) any later version.
00030  *
00031  *   GeSHi is distributed in the hope that it will be useful,
00032  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00033  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00034  *   GNU General Public License for more details.
00035  *
00036  *   You should have received a copy of the GNU General Public License
00037  *   along with GeSHi; if not, write to the Free Software
00038  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00039  *
00040  ************************************************************************************/
00041 
00042  $language_data = array (
00043      'LANG_NAME' => 'C#',
00044      'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
00045      'COMMENT_MULTI' => array('/*' => '*/'),
00046      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00047      'QUOTEMARKS' => array("'", '"'),
00048     'HARDQUOTE' => array('@"', '"'),
00049     'HARDESCAPE' => array('""'),
00050      'ESCAPE_CHAR' => '\\',
00051      'KEYWORDS' => array(
00052           1 => array(
00053                'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue',
00054                'default', 'do', 'else', 'event', 'explicit', 'extern', 'false',
00055                'finally', 'fixed', 'for', 'foreach', 'goto', 'if', 'implicit',
00056                'in', 'internal', 'lock', 'namespace', 'null', 'operator', 'out',
00057                'override', 'params', 'private', 'protected', 'public', 'readonly',
00058                'ref', 'return', 'sealed', 'stackalloc', 'static', 'switch', 'this',
00059                'throw', 'true', 'try', 'unsafe', 'using', 'virtual', 'void', 'while'
00060                ),
00061           2 => array(
00062                '#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if',
00063                '#line', '#region', '#undef', '#warning'
00064                ),
00065           3 => array(
00066                'checked', 'is', 'new', 'sizeof', 'typeof', 'unchecked'
00067                ),
00068           4 => array(
00069                'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double',
00070                'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte',
00071                'short', 'string', 'struct', 'uint', 'ulong', 'ushort'
00072                ),
00073           5 => array(
00074                'Microsoft.Win32',
00075                'System',
00076                'System.CodeDOM',
00077                'System.CodeDOM.Compiler',
00078                'System.Collections',
00079                'System.Collections.Bases',
00080                'System.ComponentModel',
00081                'System.ComponentModel.Design',
00082                'System.ComponentModel.Design.CodeModel',
00083                'System.Configuration',
00084                'System.Configuration.Assemblies',
00085                'System.Configuration.Core',
00086                'System.Configuration.Install',
00087                'System.Configuration.Interceptors',
00088                'System.Configuration.Schema',
00089                'System.Configuration.Web',
00090                'System.Core',
00091                'System.Data',
00092                'System.Data.ADO',
00093                'System.Data.Design',
00094                'System.Data.Internal',
00095                'System.Data.SQL',
00096                'System.Data.SQLTypes',
00097                'System.Data.XML',
00098                'System.Data.XML.DOM',
00099                'System.Data.XML.XPath',
00100                'System.Data.XML.XSLT',
00101                'System.Diagnostics',
00102                'System.Diagnostics.SymbolStore',
00103                'System.DirectoryServices',
00104                'System.Drawing',
00105                'System.Drawing.Design',
00106                'System.Drawing.Drawing2D',
00107                'System.Drawing.Imaging',
00108                'System.Drawing.Printing',
00109                'System.Drawing.Text',
00110                'System.Globalization',
00111                'System.IO',
00112                'System.IO.IsolatedStorage',
00113                'System.Messaging',
00114                'System.Net',
00115                'System.Net.Sockets',
00116                'System.NewXml',
00117                'System.NewXml.XPath',
00118                'System.NewXml.Xsl',
00119                'System.Reflection',
00120                'System.Reflection.Emit',
00121                'System.Resources',
00122                'System.Runtime.InteropServices',
00123                'System.Runtime.InteropServices.Expando',
00124                'System.Runtime.Remoting',
00125                'System.Runtime.Serialization',
00126                'System.Runtime.Serialization.Formatters',
00127                'System.Runtime.Serialization.Formatters.Binary',
00128                'System.Security',
00129                'System.Security.Cryptography',
00130                'System.Security.Cryptography.X509Certificates',
00131                'System.Security.Permissions',
00132                'System.Security.Policy',
00133                'System.Security.Principal',
00134                'System.ServiceProcess',
00135                'System.Text',
00136                'System.Text.RegularExpressions',
00137                'System.Threading',
00138                'System.Timers',
00139                'System.Web',
00140                'System.Web.Caching',
00141                'System.Web.Configuration',
00142                'System.Web.Security',
00143                'System.Web.Services',
00144                'System.Web.Services.Description',
00145                'System.Web.Services.Discovery',
00146                'System.Web.Services.Protocols',
00147                'System.Web.UI',
00148                'System.Web.UI.Design',
00149                'System.Web.UI.Design.WebControls',
00150                'System.Web.UI.Design.WebControls.ListControls',
00151                'System.Web.UI.HtmlControls',
00152                'System.Web.UI.WebControls',
00153                'System.WinForms',
00154                'System.WinForms.ComponentModel',
00155                'System.WinForms.Design',
00156                'System.Xml',
00157                'System.Xml.Serialization',
00158                'System.Xml.Serialization.Code',
00159                'System.Xml.Serialization.Schema'
00160                ),
00161           ),
00162      'SYMBOLS' => array(
00163           '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', '|', ':',
00164           '(', ')', '{', '}', '[', ']'
00165           ),
00166      'CASE_SENSITIVE' => array(
00167           GESHI_COMMENTS => true,
00168           1 => false,
00169           2 => false,
00170           3 => false,
00171           4 => false,
00172           5 => false,
00173           ),
00174      'STYLES' => array(
00175           'KEYWORDS' => array(
00176                1 => 'color: #0600FF;',
00177                2 => 'color: #FF8000; font-weight: bold;',
00178                3 => 'color: #008000;',
00179                4 => 'color: #FF0000;',
00180                5 => 'color: #000000;'
00181                ),
00182           'COMMENTS' => array(
00183                1 => 'color: #008080; font-style: italic;',
00184                2 => 'color: #008080;',
00185                'MULTI' => 'color: #008080; font-style: italic;'
00186                ),
00187           'ESCAPE_CHAR' => array(
00188                0 => 'color: #008080; font-weight: bold;'
00189                ),
00190           'BRACKETS' => array(
00191                0 => 'color: #000000;'
00192                ),
00193           'STRINGS' => array(
00194                0 => 'color: #808080;'
00195                ),
00196           'NUMBERS' => array(
00197                0 => 'color: #FF0000;'
00198                ),
00199           'METHODS' => array(
00200                1 => 'color: #0000FF;',
00201                2 => 'color: #0000FF;'
00202                ),
00203           'SYMBOLS' => array(
00204                0 => 'color: #008000;'
00205                ),
00206           'REGEXPS' => array(
00207                ),
00208           'SCRIPT' => array(
00209                )
00210           ),
00211      'URLS' => array(
00212           1 => '',
00213           2 => '',
00214           3 => 'http://www.google.com/search?q={FNAME}+msdn.microsoft.com',
00215           4 => ''
00216           ),
00217      'OOLANG' => true,
00218      'OBJECT_SPLITTERS' => array(
00219           1 => '.',
00220           2 => '::'
00221           ),
00222      'REGEXPS' => array(
00223           ),
00224      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00225      'SCRIPT_DELIMITERS' => array(
00226           ),
00227      'HIGHLIGHT_STRICT_BLOCK' => array(
00228         ),
00229     'TAB_WIDTH' => 4
00230 );
00231 
00232 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8