1 | <?php |
---|
2 | /************************************************************************************* |
---|
3 | * xml.php |
---|
4 | * ------- |
---|
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 $ |
---|
11 | * |
---|
12 | * XML language file for GeSHi. Based on the idea/file by Christian Weiske |
---|
13 | * |
---|
14 | * CHANGES |
---|
15 | * ------- |
---|
16 | * 2005/12/28 (1.0.2) |
---|
17 | * - Removed escape character for strings |
---|
18 | * 2004/11/27 (1.0.1) |
---|
19 | * - Added support for multiple object splitters |
---|
20 | * 2004/10/27 (1.0.0) |
---|
21 | * - First Release |
---|
22 | * |
---|
23 | * TODO (updated 2004/11/27) |
---|
24 | * ------------------------- |
---|
25 | * * Check regexps work and correctly highlight XML stuff and nothing else |
---|
26 | * |
---|
27 | ************************************************************************************* |
---|
28 | * |
---|
29 | * This file is part of GeSHi. |
---|
30 | * |
---|
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. |
---|
35 | * |
---|
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. |
---|
40 | * |
---|
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 |
---|
44 | * |
---|
45 | ************************************************************************************/ |
---|
46 | |
---|
47 | $language_data = array ( |
---|
48 | 'LANG_NAME' => 'XML', |
---|
49 | 'COMMENT_SINGLE' => array(), |
---|
50 | 'COMMENT_MULTI' => array('<!--' => '-->'), |
---|
51 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
---|
52 | 'QUOTEMARKS' => array(), |
---|
53 | 'ESCAPE_CHAR' => '', |
---|
54 | 'KEYWORDS' => array( |
---|
55 | ), |
---|
56 | 'SYMBOLS' => array( |
---|
57 | ), |
---|
58 | 'CASE_SENSITIVE' => array( |
---|
59 | GESHI_COMMENTS => false, |
---|
60 | ), |
---|
61 | 'STYLES' => array( |
---|
62 | 'KEYWORDS' => array( |
---|
63 | ), |
---|
64 | 'COMMENTS' => array( |
---|
65 | 'MULTI' => 'color: #808080; font-style: italic;' |
---|
66 | ), |
---|
67 | 'ESCAPE_CHAR' => array( |
---|
68 | 0 => 'color: #000099; font-weight: bold;' |
---|
69 | ), |
---|
70 | 'BRACKETS' => array( |
---|
71 | ), |
---|
72 | 'STRINGS' => array( |
---|
73 | ), |
---|
74 | 'NUMBERS' => array( |
---|
75 | ), |
---|
76 | 'METHODS' => array( |
---|
77 | ), |
---|
78 | 'SYMBOLS' => array( |
---|
79 | ), |
---|
80 | 'SCRIPT' => array( |
---|
81 | ), |
---|
82 | 'REGEXPS' => array( |
---|
83 | 0 => 'color: #ff0000;', |
---|
84 | 1 => 'font-weight: bold; color: black;', |
---|
85 | 2 => 'font-weight: bold; color: black;', |
---|
86 | 3 => 'color: #66cc66; font-weight: bold;', |
---|
87 | ) |
---|
88 | ), |
---|
89 | 'URLS' => array( |
---|
90 | ), |
---|
91 | 'OOLANG' => false, |
---|
92 | 'OBJECT_SPLITTERS' => array( |
---|
93 | ), |
---|
94 | 'REGEXPS' => array( |
---|
95 | 0 => array( |
---|
96 | GESHI_SEARCH => '(\#[a-z0-9_]*)', |
---|
97 | GESHI_REPLACE => '\\1', |
---|
98 | GESHI_MODIFIERS => 'i', |
---|
99 | GESHI_BEFORE => '', |
---|
100 | GESHI_AFTER => '' |
---|
101 | ), |
---|
102 | 1 => array( |
---|
103 | GESHI_SEARCH => '(<\/?\/?B(OUCLE)?[a-z0-9_]*)', |
---|
104 | GESHI_REPLACE => '\\1', |
---|
105 | GESHI_MODIFIERS => 'i', |
---|
106 | GESHI_BEFORE => '', |
---|
107 | GESHI_AFTER => '' |
---|
108 | ), |
---|
109 | 2 => array( |
---|
110 | GESHI_SEARCH => '(\([^\)]*\))', |
---|
111 | GESHI_REPLACE => '\\1', |
---|
112 | GESHI_MODIFIERS => 'i', |
---|
113 | GESHI_BEFORE => '', |
---|
114 | GESHI_AFTER => '' |
---|
115 | ), |
---|
116 | 3 => array( |
---|
117 | GESHI_SEARCH => '(\{[^\}]*\})', |
---|
118 | GESHI_REPLACE => '\\1', |
---|
119 | GESHI_MODIFIERS => 'i', |
---|
120 | GESHI_BEFORE => '', |
---|
121 | GESHI_AFTER => '' |
---|
122 | ), |
---|
123 | ), |
---|
124 | 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
---|
125 | 'SCRIPT_DELIMITERS' => array( ), |
---|
126 | 'HIGHLIGHT_STRICT_BLOCK' => array( |
---|
127 | 0 => true, |
---|
128 | 1 => true, |
---|
129 | 2 => true, |
---|
130 | 3 => true |
---|
131 | ) |
---|
132 | ); |
---|
133 | |
---|
134 | ?> |
---|