1: <?php
2: /**
3: * Auto-generated class. XML syntax highlighting
4: *
5: * PHP version 4 and 5
6: *
7: * LICENSE: This source file is subject to version 3.0 of the PHP license
8: * that is available through the world-wide-web at the following URI:
9: * http://www.php.net/license/3_0.txt. If you did not receive a copy of
10: * the PHP License and are unable to obtain it through the web, please
11: * send a note to license@php.net so we can mail you a copy immediately.
12: *
13: * @copyright 2004-2006 Andrey Demenev
14: * @license http://www.php.net/license/3_0.txt PHP License
15: * @link http://pear.php.net/package/Text_Highlighter
16: * @category Text
17: * @package Text_Highlighter
18: * @version generated from: : xml.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp
19: * @author Andrey Demenev <demenev@gmail.com>
20: *
21: */
22:
23: /**
24: * Auto-generated class. XML syntax highlighting
25: *
26: * @author Andrey Demenev <demenev@gmail.com>
27: * @category Text
28: * @package Text_Highlighter
29: * @copyright 2004-2006 Andrey Demenev
30: * @license http://www.php.net/license/3_0.txt PHP License
31: * @version Release: 0.7.1
32: * @link http://pear.php.net/package/Text_Highlighter
33: */
34: class Text_Highlighter_XML extends Text_Highlighter
35: {
36: var $_language = 'xml';
37:
38: /**
39: * Constructor
40: *
41: * @param array $options
42: * @access public
43: */
44: function __construct($options=array())
45: {
46:
47: $this->_options = $options;
48: $this->_regs = array (
49: -1 => '/((?i)\\<\\!\\[CDATA\\[)|((?i)\\<!--)|((?i)\\<[\\?\\/]?)|((?i)(&|%)[\\w\\-\\.]+;)/',
50: 0 => '//',
51: 1 => '//',
52: 2 => '/((?i)(?<=[\\<\\/?])[\\w\\-\\:]+)|((?i)[\\w\\-\\:]+)|((?i)")/',
53: 3 => '/((?i)(&|%)[\\w\\-\\.]+;)/',
54: );
55: $this->_counts = array (
56: -1 =>
57: array (
58: 0 => 0,
59: 1 => 0,
60: 2 => 0,
61: 3 => 1,
62: ),
63: 0 =>
64: array (
65: ),
66: 1 =>
67: array (
68: ),
69: 2 =>
70: array (
71: 0 => 0,
72: 1 => 0,
73: 2 => 0,
74: ),
75: 3 =>
76: array (
77: 0 => 1,
78: ),
79: );
80: $this->_delim = array (
81: -1 =>
82: array (
83: 0 => 'comment',
84: 1 => 'comment',
85: 2 => 'brackets',
86: 3 => '',
87: ),
88: 0 =>
89: array (
90: ),
91: 1 =>
92: array (
93: ),
94: 2 =>
95: array (
96: 0 => '',
97: 1 => '',
98: 2 => 'quotes',
99: ),
100: 3 =>
101: array (
102: 0 => '',
103: ),
104: );
105: $this->_inner = array (
106: -1 =>
107: array (
108: 0 => 'comment',
109: 1 => 'comment',
110: 2 => 'code',
111: 3 => 'special',
112: ),
113: 0 =>
114: array (
115: ),
116: 1 =>
117: array (
118: ),
119: 2 =>
120: array (
121: 0 => 'reserved',
122: 1 => 'var',
123: 2 => 'string',
124: ),
125: 3 =>
126: array (
127: 0 => 'special',
128: ),
129: );
130: $this->_end = array (
131: 0 => '/(?i)\\]\\]\\>/',
132: 1 => '/(?i)--\\>/',
133: 2 => '/(?i)[\\/\\?]?\\>/',
134: 3 => '/(?i)"/',
135: );
136: $this->_states = array (
137: -1 =>
138: array (
139: 0 => 0,
140: 1 => 1,
141: 2 => 2,
142: 3 => -1,
143: ),
144: 0 =>
145: array (
146: ),
147: 1 =>
148: array (
149: ),
150: 2 =>
151: array (
152: 0 => -1,
153: 1 => -1,
154: 2 => 3,
155: ),
156: 3 =>
157: array (
158: 0 => -1,
159: ),
160: );
161: $this->_keywords = array (
162: -1 =>
163: array (
164: 0 => -1,
165: 1 => -1,
166: 2 => -1,
167: 3 =>
168: array (
169: ),
170: ),
171: 0 =>
172: array (
173: ),
174: 1 =>
175: array (
176: ),
177: 2 =>
178: array (
179: 0 =>
180: array (
181: ),
182: 1 =>
183: array (
184: ),
185: 2 => -1,
186: ),
187: 3 =>
188: array (
189: 0 =>
190: array (
191: ),
192: ),
193: );
194: $this->_parts = array (
195: 0 =>
196: array (
197: ),
198: 1 =>
199: array (
200: ),
201: 2 =>
202: array (
203: 0 => NULL,
204: 1 => NULL,
205: 2 => NULL,
206: ),
207: 3 =>
208: array (
209: 0 => NULL,
210: ),
211: );
212: $this->_subst = array (
213: -1 =>
214: array (
215: 0 => false,
216: 1 => false,
217: 2 => false,
218: 3 => false,
219: ),
220: 0 =>
221: array (
222: ),
223: 1 =>
224: array (
225: ),
226: 2 =>
227: array (
228: 0 => false,
229: 1 => false,
230: 2 => false,
231: ),
232: 3 =>
233: array (
234: 0 => false,
235: ),
236: );
237: $this->_conditions = array (
238: );
239: $this->_kwmap = array (
240: );
241: $this->_defClass = 'code';
242: $this->_checkDefines();
243: }
244:
245: }