first commit. dokuwiki.
[h2N7SspZmY.git] / inc / geshi / mxml.php
blobd34a9253173839d6181adae85bdf571535476c57
1 <?php
2 /*************************************************************************************
3 * mxml.php
4 * -------
5 * Author: David Spurr
6 * Copyright: (c) 2007 David Spurr (http://www.defusion.org.uk/)
7 * Release Version: 1.0.8.4
8 * Date Started: 2007/10/04
10 * MXML language file for GeSHi. Based on the XML file by Nigel McNie
12 * CHANGES
13 * -------
14 * 2007/10/04 (1.0.7.22)
15 * - First Release
17 * TODO
18 * ----
20 *************************************************************************************
22 * This file is part of GeSHi.
24 * GeSHi is free software; you can redistribute it and/or modify
25 * it under the terms of the GNU General Public License as published by
26 * the Free Software Foundation; either version 2 of the License, or
27 * (at your option) any later version.
29 * GeSHi is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * You should have received a copy of the GNU General Public License
35 * along with GeSHi; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 ************************************************************************************/
40 $language_data = array (
41 'LANG_NAME' => 'MXML',
42 'COMMENT_SINGLE' => array(),
43 'COMMENT_MULTI' => array('<!--' => '-->'),
44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
45 'QUOTEMARKS' => array("'", '"'),
46 'ESCAPE_CHAR' => '',
47 'KEYWORDS' => array(
49 'SYMBOLS' => array(
51 'CASE_SENSITIVE' => array(
52 GESHI_COMMENTS => false,
54 'STYLES' => array(
55 'KEYWORDS' => array(
57 'COMMENTS' => array(
58 'MULTI' => 'color: #808080; font-style: italic;'
60 'ESCAPE_CHAR' => array(
61 0 => 'color: #000099; font-weight: bold;'
63 'BRACKETS' => array(
64 0 => 'color: #66cc66;'
66 'STRINGS' => array(
67 0 => 'color: #ff0000;'
69 'NUMBERS' => array(
70 0 => 'color: #cc66cc;'
72 'METHODS' => array(
74 'SYMBOLS' => array(
75 0 => 'color: #66cc66;'
77 'SCRIPT' => array(
78 0 => 'color: #00bbdd;',
79 1 => 'color: #ddbb00;',
80 2 => 'color: #339933;',
81 3 => 'color: #000000;'
83 'REGEXPS' => array(
84 0 => 'font-weight: bold; color: black;',
85 1 => 'color: #7400FF;',
86 2 => 'color: #7400FF;'
89 'URLS' => array(
91 'OOLANG' => false,
92 'OBJECT_SPLITTERS' => array(
94 'REGEXPS' => array(
95 // xml declaration
96 0 => array(
97 GESHI_SEARCH => '(&lt;[\/?|(\?xml)]?[a-z0-9_\-:]*(\?&gt;))',
98 GESHI_REPLACE => '\\1',
99 GESHI_MODIFIERS => 'i',
100 GESHI_BEFORE => '',
101 GESHI_AFTER => ''
103 // opening tags
104 1 => array(
105 GESHI_SEARCH => '(&lt;\/?[a-z]+:[a-z]+)',
106 GESHI_REPLACE => '\\1',
107 GESHI_MODIFIERS => 'i',
108 GESHI_BEFORE => '',
109 GESHI_AFTER => ''
111 // closing tags
112 2 => array(
113 GESHI_SEARCH => '(\/?&gt;)',
114 GESHI_REPLACE => '\\1',
115 GESHI_MODIFIERS => 'i',
116 GESHI_BEFORE => '',
117 GESHI_AFTER => ''
120 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
121 'SCRIPT_DELIMITERS' => array(
122 0 => array(
123 '<!DOCTYPE' => '>'
125 1 => array(
126 '&' => ';'
128 2 => array(
129 //'<![CDATA[' => ']]>'
130 '<mx:Script>' => '</mx:Script>'
132 3 => array(
133 '<' => '>'
136 'HIGHLIGHT_STRICT_BLOCK' => array(
137 0 => false,
138 1 => false,
139 2 => false,
140 3 => true
142 'TAB_WIDTH' => 4