2 /*************************************************************************************
5 * Author: Nigel McNie (oracle.shinoda@gmail.com)
6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
7 * Release Version: 1.0.7.6
8 * CVS Revision Version: $Revision: 1.10 $
9 * Date Started: 2004/09/01
10 * Last Modified: $Date: 2005/12/30 04:52:10 $
12 * XML language file for GeSHi. Based on the idea/file by Christian Weiske
17 * - Removed escape character for strings
19 * - Added support for multiple object splitters
23 * TODO (updated 2004/11/27)
24 * -------------------------
25 * * Check regexps work and correctly highlight XML stuff and nothing else
27 *************************************************************************************
29 * This file is part of GeSHi.
31 * GeSHi is free software; you can redistribute it and/or modify
32 * it under the terms of the GNU General Public License as published by
33 * the Free Software Foundation; either version 2 of the License, or
34 * (at your option) any later version.
36 * GeSHi is distributed in the hope that it will be useful,
37 * but WITHOUT ANY WARRANTY; without even the implied warranty of
38 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 * GNU General Public License for more details.
41 * You should have received a copy of the GNU General Public License
42 * along with GeSHi; if not, write to the Free Software
43 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 ************************************************************************************/
47 $language_data = array (
49 'COMMENT_SINGLE' => array(),
50 'COMMENT_MULTI' => array('<!--' => '-->'),
51 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
52 'QUOTEMARKS' => array("'", '"'),
58 'CASE_SENSITIVE' => array(
59 GESHI_COMMENTS
=> false
,
65 'MULTI' => 'color: #808080; font-style: italic;'
67 'ESCAPE_CHAR' => array(
68 0 => 'color: #000099; font-weight: bold;'
71 0 => 'color: #66cc66;'
74 0 => 'color: #ff0000;'
77 0 => 'color: #cc66cc;'
82 0 => 'color: #66cc66;'
85 0 => 'color: #00bbdd;',
86 1 => 'color: #ddbb00;',
87 2 => 'color: #339933;',
88 3 => 'color: #009900;'
91 0 => 'color: #000066;',
92 1 => 'font-weight: bold; color: black;',
93 2 => 'font-weight: bold; color: black;',
99 'OBJECT_SPLITTERS' => array(
103 GESHI_SEARCH
=> '(((xml:)?[a-z\-]+))(=)',
104 GESHI_REPLACE
=> '\\1',
105 GESHI_MODIFIERS
=> 'i',
110 GESHI_SEARCH
=> '(</?[a-z0-9_]*(>)?)',
111 GESHI_REPLACE
=> '\\1',
112 GESHI_MODIFIERS
=> 'i',
117 GESHI_SEARCH
=> '((/)?>)',
118 GESHI_REPLACE
=> '\\1',
119 GESHI_MODIFIERS
=> 'i',
124 'STRICT_MODE_APPLIES' => GESHI_ALWAYS
,
125 'SCRIPT_DELIMITERS' => array(
139 'HIGHLIGHT_STRICT_BLOCK' => array(