]>
src.bluestatic.org Git - viewsvn.git/blob - xml.php
682ca3dbe311bcc3dfd69ec256535965dcdbc3d8
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.5
8 * CVS Revision Version: $Revision: 1.7 $
9 * Date Started: 2004/09/01
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * XML language file for GeSHi. Based on the idea/file by Christian Weiske
17 * - Added support for multiple object splitters
21 * TODO (updated 2004/11/27)
22 * -------------------------
23 * * Check regexps work and correctly highlight XML stuff and nothing else
25 *************************************************************************************
27 * This file is part of GeSHi.
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.
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.
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
43 ************************************************************************************/
45 $language_data = array (
47 'COMMENT_SINGLE' => array(),
48 'COMMENT_MULTI' => array('<!--' => '-->'),
49 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
50 'QUOTEMARKS' => array("'", '"'),
51 'ESCAPE_CHAR' => '\\',
56 'CASE_SENSITIVE' => array(
57 GESHI_COMMENTS
=> false,
63 'MULTI' => 'color: #808080; font-style: italic;'
65 'ESCAPE_CHAR' => array(
66 0 => 'color: #000099; font-weight: bold;'
69 0 => 'color: #66cc66;'
72 0 => 'color: #ff0000;'
75 0 => 'color: #cc66cc;'
80 0 => 'color: #66cc66;'
83 0 => 'color: #00bbdd;',
84 1 => 'color: #ddbb00;',
85 2 => 'color: #339933;',
86 3 => 'color: #009900;'
89 0 => 'color: #000066;',
90 1 => 'font-weight: bold; color: black;',
91 2 => 'font-weight: bold; color: black;',
97 'OBJECT_SPLITTERS' => array(
101 GESHI_SEARCH
=> '(((xml:)?[a-z\-]+))(=)',
102 GESHI_REPLACE
=> '\\1',
103 GESHI_MODIFIERS
=> 'i',
108 GESHI_SEARCH
=> '(</?[a-z0-9_]*(>)?)',
109 GESHI_REPLACE
=> '\\1',
110 GESHI_MODIFIERS
=> 'i',
115 GESHI_SEARCH
=> '((/)?>)',
116 GESHI_REPLACE
=> '\\1',
117 GESHI_MODIFIERS
=> 'i',
122 'STRICT_MODE_APPLIES' => GESHI_ALWAYS
,
123 'SCRIPT_DELIMITERS' => array(
137 'HIGHLIGHT_STRICT_BLOCK' => array(