xml.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * xml.php
00004  * -------
00005  * Author: Nigel McNie (nigel@geshi.org)
00006  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/09/01
00009  *
00010  * XML language file for GeSHi. Based on the idea/file by Christian Weiske
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/12/28 (1.0.2)
00015  *   -  Removed escape character for strings
00016  * 2004/11/27 (1.0.1)
00017  *   -  Added support for multiple object splitters
00018  * 2004/10/27 (1.0.0)
00019  *   -  First Release
00020  *
00021  * TODO (updated 2004/11/27)
00022  * -------------------------
00023  * * Check regexps work and correctly highlight XML stuff and nothing else
00024  *
00025  *************************************************************************************
00026  *
00027  *     This file is part of GeSHi.
00028  *
00029  *   GeSHi is free software; you can redistribute it and/or modify
00030  *   it under the terms of the GNU General Public License as published by
00031  *   the Free Software Foundation; either version 2 of the License, or
00032  *   (at your option) any later version.
00033  *
00034  *   GeSHi is distributed in the hope that it will be useful,
00035  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00036  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00037  *   GNU General Public License for more details.
00038  *
00039  *   You should have received a copy of the GNU General Public License
00040  *   along with GeSHi; if not, write to the Free Software
00041  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00042  *
00043  ************************************************************************************/
00044 
00045 $language_data = array (
00046      'LANG_NAME' => 'XML',
00047      'COMMENT_SINGLE' => array(),
00048      'COMMENT_MULTI' => array('<!--' => '-->'),
00049      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00050      'QUOTEMARKS' => array("'", '"'),
00051      'ESCAPE_CHAR' => '',
00052      'KEYWORDS' => array(
00053           ),
00054      'SYMBOLS' => array(
00055           ),
00056      'CASE_SENSITIVE' => array(
00057           GESHI_COMMENTS => false,
00058           ),
00059      'STYLES' => array(
00060           'KEYWORDS' => array(
00061                ),
00062           'COMMENTS' => array(
00063                'MULTI' => 'color: #808080; font-style: italic;'
00064                ),
00065           'ESCAPE_CHAR' => array(
00066                0 => 'color: #000099; font-weight: bold;'
00067                ),
00068           'BRACKETS' => array(
00069                0 => 'color: #66cc66;'
00070                ),
00071           'STRINGS' => array(
00072                0 => 'color: #ff0000;'
00073                ),
00074           'NUMBERS' => array(
00075                0 => 'color: #cc66cc;'
00076                ),
00077           'METHODS' => array(
00078                ),
00079           'SYMBOLS' => array(
00080                0 => 'color: #66cc66;'
00081                ),
00082           'SCRIPT' => array(
00083                0 => 'color: #00bbdd;',
00084                1 => 'color: #ddbb00;',
00085                2 => 'color: #339933;',
00086                3 => 'color: #009900;'
00087                ),
00088           'REGEXPS' => array(
00089                0 => 'color: #000066;',
00090                1 => 'font-weight: bold; color: black;',
00091                2 => 'font-weight: bold; color: black;',
00092                )
00093           ),
00094      'URLS' => array(
00095           ),
00096      'OOLANG' => false,
00097      'OBJECT_SPLITTERS' => array(
00098           ),
00099      'REGEXPS' => array(
00100           0 => array(
00101                GESHI_SEARCH => '([a-z_\-:]+)(=)',
00102                GESHI_REPLACE => '\\1',
00103                GESHI_MODIFIERS => 'i',
00104                GESHI_BEFORE => '',
00105                GESHI_AFTER => '\\2'
00106                ),
00107           1 => array(
00108                GESHI_SEARCH => '(&lt;[/?|(\?xml)]?[a-z0-9_\-:]*(\??&gt;)?)',
00109                GESHI_REPLACE => '\\1',
00110                GESHI_MODIFIERS => 'i',
00111                GESHI_BEFORE => '',
00112                GESHI_AFTER => ''
00113                ),
00114           2 => array(
00115                GESHI_SEARCH => '(([/|\?])?&gt;)',
00116                GESHI_REPLACE => '\\1',
00117                GESHI_MODIFIERS => 'i',
00118                GESHI_BEFORE => '',
00119                GESHI_AFTER => ''
00120                )
00121           ),
00122      'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
00123      'SCRIPT_DELIMITERS' => array(
00124           0 => array(
00125                '<!DOCTYPE' => '>'
00126                ),
00127           1 => array(
00128                '&' => ';'
00129                ),
00130           2 => array(
00131                '<![CDATA[' => ']]>'
00132                ),
00133           3 => array(
00134                '<' => '>'
00135                )
00136      ),
00137      'HIGHLIGHT_STRICT_BLOCK' => array(
00138           0 => false,
00139           1 => false,
00140           2 => false,
00141           3 => true
00142         ),
00143     'TAB_WIDTH' => 4
00144 );
00145 
00146 ?>

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