c.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * c.php
00004  * -----
00005  * Author: Nigel McNie (nigel@geshi.org)
00006  * Contributors:
00007  *  - Jack Lloyd (lloyd@randombit.net)
00008  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
00009  * Release Version: 1.0.7.20
00010  * Date Started: 2004/06/04
00011  *
00012  * C language file for GeSHi.
00013  *
00014  * CHANGES
00015  * -------
00016  * 2004/XX/XX (1.0.4)
00017  *   -  Added a couple of new keywords (Jack Lloyd)
00018  * 2004/11/27 (1.0.3)
00019  *   -  Added support for multiple object splitters
00020  * 2004/10/27 (1.0.2)
00021  *   -  Added support for URLs
00022  * 2004/08/05 (1.0.1)
00023  *   -  Added support for symbols
00024  * 2004/07/14 (1.0.0)
00025  *   -  First Release
00026  *
00027  * TODO (updated 2004/11/27)
00028  * -------------------------
00029  *  -  Get a list of inbuilt functions to add (and explore C more
00030  *     to complete this rather bare language file
00031  *
00032  *************************************************************************************
00033  *
00034  *     This file is part of GeSHi.
00035  *
00036  *   GeSHi is free software; you can redistribute it and/or modify
00037  *   it under the terms of the GNU General Public License as published by
00038  *   the Free Software Foundation; either version 2 of the License, or
00039  *   (at your option) any later version.
00040  *
00041  *   GeSHi is distributed in the hope that it will be useful,
00042  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00043  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00044  *   GNU General Public License for more details.
00045  *
00046  *   You should have received a copy of the GNU General Public License
00047  *   along with GeSHi; if not, write to the Free Software
00048  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00049  *
00050  ************************************************************************************/
00051 
00052 $language_data = array (
00053      'LANG_NAME' => 'C',
00054      'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
00055      'COMMENT_MULTI' => array('/*' => '*/'),
00056      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00057      'QUOTEMARKS' => array("'", '"'),
00058      'ESCAPE_CHAR' => '\\',
00059      'KEYWORDS' => array(
00060           1 => array(
00061                'if', 'return', 'while', 'case', 'continue', 'default',
00062                'do', 'else', 'for', 'switch', 'goto'
00063                ),
00064           2 => array(
00065                'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline'
00066                ),
00067           3 => array(
00068                'printf', 'cout'
00069                ),
00070           4 => array(
00071                'auto', 'char', 'const', 'double',  'float', 'int', 'long',
00072                'register', 'short', 'signed', 'sizeof', 'static', 'string', 'struct',
00073                'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t'
00074                ),
00075           ),
00076      'SYMBOLS' => array(
00077           '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':'
00078           ),
00079      'CASE_SENSITIVE' => array(
00080           GESHI_COMMENTS => true,
00081           1 => false,
00082           2 => false,
00083           3 => false,
00084           4 => false,
00085           ),
00086      'STYLES' => array(
00087           'KEYWORDS' => array(
00088                1 => 'color: #b1b100;',
00089                2 => 'color: #000000; font-weight: bold;',
00090                3 => 'color: #000066;',
00091                4 => 'color: #993333;'
00092                ),
00093           'COMMENTS' => array(
00094                1 => 'color: #808080; font-style: italic;',
00095                2 => 'color: #339933;',
00096                'MULTI' => 'color: #808080; font-style: italic;'
00097                ),
00098           'ESCAPE_CHAR' => array(
00099                0 => 'color: #000099; font-weight: bold;'
00100                ),
00101           'BRACKETS' => array(
00102                0 => 'color: #66cc66;'
00103                ),
00104           'STRINGS' => array(
00105                0 => 'color: #ff0000;'
00106                ),
00107           'NUMBERS' => array(
00108                0 => 'color: #cc66cc;'
00109                ),
00110           'METHODS' => array(
00111                1 => 'color: #202020;',
00112                2 => 'color: #202020;'
00113                ),
00114           'SYMBOLS' => array(
00115                0 => 'color: #66cc66;'
00116                ),
00117           'REGEXPS' => array(
00118                ),
00119           'SCRIPT' => array(
00120                )
00121           ),
00122      'URLS' => array(
00123           1 => '',
00124           2 => '',
00125           3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAME}.html',
00126           4 => ''
00127           ),
00128      'OOLANG' => true,
00129      'OBJECT_SPLITTERS' => array(
00130           1 => '.',
00131           2 => '::'
00132           ),
00133      'REGEXPS' => array(
00134           ),
00135      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00136      'SCRIPT_DELIMITERS' => array(
00137           ),
00138      'HIGHLIGHT_STRICT_BLOCK' => array(
00139         ),
00140     'TAB_WIDTH' => 4
00141 );
00142 
00143 ?>

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