1 | 1 | simandl | <?php |
2 | | | /************************************************************************************* |
3 | | | * mxml.php |
4 | | | * ------- |
5 | | | * Author: David Spurr |
6 | | | * Copyright: (c) 2007 David Spurr (http://www.defusion.org.uk/) |
7 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * Date Started: 2007/10/04 |
9 | | | * |
10 | | | * MXML language file for GeSHi. Based on the XML file by Nigel McNie |
11 | | | * |
12 | | | * CHANGES |
13 | | | * ------- |
14 | | | * 2007/10/04 (1.0.7.22) |
15 | | | * - First Release |
16 | | | * |
17 | | | * TODO |
18 | | | * ---- |
19 | | | * |
20 | | | ************************************************************************************* |
21 | | | * |
22 | | | * This file is part of GeSHi. |
23 | | | * |
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. |
28 | | | * |
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. |
33 | | | * |
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 |
37 | | | * |
38 | | | ************************************************************************************/ |
39 | | | |
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( |
48 | | | ), |
49 | | | 'SYMBOLS' => array( |
50 | | | ), |
51 | | | 'CASE_SENSITIVE' => array( |
52 | | | GESHI_COMMENTS => false, |
53 | | | ), |
54 | | | 'STYLES' => array( |
55 | | | 'KEYWORDS' => array( |
56 | | | ), |
57 | | | 'COMMENTS' => array( |
58 | | | 'MULTI' => 'color: #808080; font-style: italic;' |
59 | | | ), |
60 | | | 'ESCAPE_CHAR' => array( |
61 | | | |
62 | | | ), |
63 | | | 'BRACKETS' => array( |
64 | | | |
65 | | | ), |
66 | | | 'STRINGS' => array( |
67 | | | |
68 | | | ), |
69 | | | 'NUMBERS' => array( |
70 | | | |
71 | | | ), |
72 | | | 'METHODS' => array( |
73 | | | ), |
74 | | | 'SYMBOLS' => array( |
75 | | | |
76 | | | ), |
77 | | | 'SCRIPT' => array( |
78 | | | |
79 | | | 1 => 'color: #ddbb00;', |
80 | | | 2 => 'color: #339933;', |
81 | | | 3 => 'color: #000000;' |
82 | | | ), |
83 | | | 'REGEXPS' => array( |
84 | | | |
85 | | | 1 => 'color: #7400FF;', |
86 | | | 2 => 'color: #7400FF;' |
87 | | | ) |
88 | | | ), |
89 | | | 'URLS' => array( |
90 | | | ), |
91 | | | 'OOLANG' => false, |
92 | | | 'OBJECT_SPLITTERS' => array( |
93 | | | ), |
94 | | | 'REGEXPS' => array( |
95 | | | // xml declaration |
96 | | | |
97 | | | GESHI_SEARCH => '(<[\/?|(\?xml)]?[a-z0-9_\-:]*(\?>))', |
98 | | | GESHI_REPLACE => '\\1', |
99 | | | GESHI_MODIFIERS => 'i', |
100 | | | GESHI_BEFORE => '', |
101 | | | GESHI_AFTER => '' |
102 | | | ), |
103 | | | // opening tags |
104 | | | 1 => array( |
105 | | | GESHI_SEARCH => '(<\/?[a-z]+:[a-z]+)', |
106 | | | GESHI_REPLACE => '\\1', |
107 | | | GESHI_MODIFIERS => 'i', |
108 | | | GESHI_BEFORE => '', |
109 | | | GESHI_AFTER => '' |
110 | | | ), |
111 | | | // closing tags |
112 | | | 2 => array( |
113 | | | GESHI_SEARCH => '(\/?>)', |
114 | | | GESHI_REPLACE => '\\1', |
115 | | | GESHI_MODIFIERS => 'i', |
116 | | | GESHI_BEFORE => '', |
117 | | | GESHI_AFTER => '' |
118 | | | ) |
119 | | | ), |
120 | | | 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, |
121 | | | 'SCRIPT_DELIMITERS' => array( |
122 | | | |
123 | | | '<!DOCTYPE' => '>' |
124 | | | ), |
125 | | | 1 => array( |
126 | | | '&' => ';' |
127 | | | ), |
128 | | | 2 => array( |
129 | | | //'<![CDATA[' => ']]>' |
130 | | | '<mx:Script>' => '</mx:Script>' |
131 | | | ), |
132 | | | 3 => array( |
133 | | | '<' => '>' |
134 | | | ) |
135 | | | ), |
136 | | | 'HIGHLIGHT_STRICT_BLOCK' => array( |
137 | | | |
138 | | | 1 => false, |
139 | | | 2 => false, |
140 | | | 3 => true |
141 | | | ), |
142 | | | 'TAB_WIDTH' => 4 |
143 | | | ); |
144 | | | |
145 | | | ?> |