openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

xml.php (3663B)


      1 <?php
      2 /*************************************************************************************
      3  * xml.php
      4  * -------
      5  * Author: Nigel McNie (nigel@geshi.org)
      6  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
      7  * Release Version: 1.0.7.20
      8  * Date Started: 2004/09/01
      9  *
     10  * XML language file for GeSHi. Based on the idea/file by Christian Weiske
     11  *
     12  * CHANGES
     13  * -------
     14  * 2005/12/28 (1.0.2)
     15  *   -  Removed escape character for strings
     16  * 2004/11/27 (1.0.1)
     17  *   -  Added support for multiple object splitters
     18  * 2004/10/27 (1.0.0)
     19  *   -  First Release
     20  *
     21  * TODO (updated 2004/11/27)
     22  * -------------------------
     23  * * Check regexps work and correctly highlight XML stuff and nothing else
     24  *
     25  *************************************************************************************
     26  *
     27  *     This file is part of GeSHi.
     28  *
     29  *   GeSHi is free software; you can redistribute it and/or modify
     30  *   it under the terms of the GNU General Public License as published by
     31  *   the Free Software Foundation; either version 2 of the License, or
     32  *   (at your option) any later version.
     33  *
     34  *   GeSHi is distributed in the hope that it will be useful,
     35  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     36  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     37  *   GNU General Public License for more details.
     38  *
     39  *   You should have received a copy of the GNU General Public License
     40  *   along with GeSHi; if not, write to the Free Software
     41  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     42  *
     43  ************************************************************************************/
     44 
     45 $language_data = array (
     46 	'LANG_NAME' => 'XML',
     47 	'COMMENT_SINGLE' => array(),
     48 	'COMMENT_MULTI' => array('<!--' => '-->'),
     49 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
     50 	'QUOTEMARKS' => array("'", '"'),
     51 	'ESCAPE_CHAR' => '',
     52 	'KEYWORDS' => array(
     53 		),
     54 	'SYMBOLS' => array(
     55 		),
     56 	'CASE_SENSITIVE' => array(
     57 		GESHI_COMMENTS => false,
     58 		),
     59 	'STYLES' => array(
     60 		'KEYWORDS' => array(
     61 			),
     62 		'COMMENTS' => array(
     63 			'MULTI' => 'color: #808080; font-style: italic;'
     64 			),
     65 		'ESCAPE_CHAR' => array(
     66 			0 => 'color: #000099; font-weight: bold;'
     67 			),
     68 		'BRACKETS' => array(
     69 			0 => 'color: #66cc66;'
     70 			),
     71 		'STRINGS' => array(
     72 			0 => 'color: #ff0000;'
     73 			),
     74 		'NUMBERS' => array(
     75 			0 => 'color: #cc66cc;'
     76 			),
     77 		'METHODS' => array(
     78 			),
     79 		'SYMBOLS' => array(
     80 			0 => 'color: #66cc66;'
     81 			),
     82 		'SCRIPT' => array(
     83 			0 => 'color: #00bbdd;',
     84 			1 => 'color: #ddbb00;',
     85 			2 => 'color: #339933;',
     86 			3 => 'color: #009900;'
     87 			),
     88 		'REGEXPS' => array(
     89 			0 => 'color: #000066;',
     90 			1 => 'font-weight: bold; color: black;',
     91 			2 => 'font-weight: bold; color: black;',
     92 			)
     93 		),
     94 	'URLS' => array(
     95 		),
     96 	'OOLANG' => false,
     97 	'OBJECT_SPLITTERS' => array(
     98 		),
     99 	'REGEXPS' => array(
    100 		0 => array(
    101 			GESHI_SEARCH => '([a-z_\-:]+)(=)',
    102 			GESHI_REPLACE => '\\1',
    103 			GESHI_MODIFIERS => 'i',
    104 			GESHI_BEFORE => '',
    105 			GESHI_AFTER => '\\2'
    106 			),
    107 		1 => array(
    108 			GESHI_SEARCH => '(&lt;[/?|(\?xml)]?[a-z0-9_\-:]*(\??&gt;)?)',
    109 			GESHI_REPLACE => '\\1',
    110 			GESHI_MODIFIERS => 'i',
    111 			GESHI_BEFORE => '',
    112 			GESHI_AFTER => ''
    113 			),
    114 		2 => array(
    115 			GESHI_SEARCH => '(([/|\?])?&gt;)',
    116 			GESHI_REPLACE => '\\1',
    117 			GESHI_MODIFIERS => 'i',
    118 			GESHI_BEFORE => '',
    119 			GESHI_AFTER => ''
    120 			)
    121 		),
    122 	'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
    123 	'SCRIPT_DELIMITERS' => array(
    124 		0 => array(
    125 			'<!DOCTYPE' => '>'
    126 			),
    127 		1 => array(
    128 			'&' => ';'
    129 			),
    130 		2 => array(
    131 			'<![CDATA[' => ']]>'
    132 			),
    133 		3 => array(
    134 			'<' => '>'
    135 			)
    136 	),
    137 	'HIGHLIGHT_STRICT_BLOCK' => array(
    138 		0 => false,
    139 		1 => false,
    140 		2 => false,
    141 		3 => true
    142         ),
    143     'TAB_WIDTH' => 4
    144 );
    145 
    146 ?>