1: <?php
2: /**
3: * Auto-generated class. HTML 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: : html.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp
19: * @author Andrey Demenev <demenev@gmail.com>
20: *
21: */
22:
23: /**
24: * @ignore
25: */
26:
27: /**
28: * Auto-generated class. HTML syntax highlighting
29: *
30: * @author Andrey Demenev <demenev@gmail.com>
31: * @category Text
32: * @package Text_Highlighter
33: * @copyright 2004-2006 Andrey Demenev
34: * @license http://www.php.net/license/3_0.txt PHP License
35: * @version Release: 0.7.1
36: * @link http://pear.php.net/package/Text_Highlighter
37: */
38: class Text_Highlighter_HTML extends Text_Highlighter
39: {
40: var $_language = 'html';
41:
42: /**
43: * Constructor
44: *
45: * @param array $options
46: * @access public
47: */
48: function __construct($options=array())
49: {
50:
51: $this->_options = $options;
52: $this->_regs = array (
53: -1 => '/((?i)\\<!--)|((?i)\\<[\\?\\/]?)|((?i)(&)[\\w\\-\\.]+;)/',
54: 0 => '//',
55: 1 => '/((?i)(?<=[\\<\\/?])[\\w\\-\\:]+)|((?i)[\\w\\-\\:]+)|((?i)")/',
56: 2 => '/((?i)(&)[\\w\\-\\.]+;)/',
57: );
58: $this->_counts = array (
59: -1 =>
60: array (
61: 0 => 0,
62: 1 => 0,
63: 2 => 1,
64: ),
65: 0 =>
66: array (
67: ),
68: 1 =>
69: array (
70: 0 => 0,
71: 1 => 0,
72: 2 => 0,
73: ),
74: 2 =>
75: array (
76: 0 => 1,
77: ),
78: );
79: $this->_delim = array (
80: -1 =>
81: array (
82: 0 => 'comment',
83: 1 => 'brackets',
84: 2 => '',
85: ),
86: 0 =>
87: array (
88: ),
89: 1 =>
90: array (
91: 0 => '',
92: 1 => '',
93: 2 => 'quotes',
94: ),
95: 2 =>
96: array (
97: 0 => '',
98: ),
99: );
100: $this->_inner = array (
101: -1 =>
102: array (
103: 0 => 'comment',
104: 1 => 'code',
105: 2 => 'special',
106: ),
107: 0 =>
108: array (
109: ),
110: 1 =>
111: array (
112: 0 => 'reserved',
113: 1 => 'var',
114: 2 => 'string',
115: ),
116: 2 =>
117: array (
118: 0 => 'special',
119: ),
120: );
121: $this->_end = array (
122: 0 => '/(?i)--\\>/',
123: 1 => '/(?i)[\\/\\?]?\\>/',
124: 2 => '/(?i)"/',
125: );
126: $this->_states = array (
127: -1 =>
128: array (
129: 0 => 0,
130: 1 => 1,
131: 2 => -1,
132: ),
133: 0 =>
134: array (
135: ),
136: 1 =>
137: array (
138: 0 => -1,
139: 1 => -1,
140: 2 => 2,
141: ),
142: 2 =>
143: array (
144: 0 => -1,
145: ),
146: );
147: $this->_keywords = array (
148: -1 =>
149: array (
150: 0 => -1,
151: 1 => -1,
152: 2 =>
153: array (
154: ),
155: ),
156: 0 =>
157: array (
158: ),
159: 1 =>
160: array (
161: 0 =>
162: array (
163: ),
164: 1 =>
165: array (
166: ),
167: 2 => -1,
168: ),
169: 2 =>
170: array (
171: 0 =>
172: array (
173: ),
174: ),
175: );
176: $this->_parts = array (
177: 0 =>
178: array (
179: ),
180: 1 =>
181: array (
182: 0 => NULL,
183: 1 => NULL,
184: 2 => NULL,
185: ),
186: 2 =>
187: array (
188: 0 => NULL,
189: ),
190: );
191: $this->_subst = array (
192: -1 =>
193: array (
194: 0 => false,
195: 1 => false,
196: 2 => false,
197: ),
198: 0 =>
199: array (
200: ),
201: 1 =>
202: array (
203: 0 => false,
204: 1 => false,
205: 2 => false,
206: ),
207: 2 =>
208: array (
209: 0 => false,
210: ),
211: );
212: $this->_conditions = array (
213: );
214: $this->_kwmap = array (
215: );
216: $this->_defClass = 'code';
217: $this->_checkDefines();
218: }
219:
220: }