3 * Auto-generated class. DTD syntax highlighting
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.
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
17 * @package Text_Highlighter
18 * @version generated from: : dtd.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp
19 * @author Andrey Demenev <demenev@gmail.com>
24 * Auto-generated class. DTD syntax highlighting
26 * @author Andrey Demenev <demenev@gmail.com>
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.0
32 * @link http://pear.php.net/package/Text_Highlighter
34 class Text_Highlighter_DTD extends Text_Highlighter
36 var $_language = 'dtd';
41 * @param array $options
44 function __construct($options=array())
47 $this->_options = $options;
48 $this->_regs = array (
49 -1 => '/(\\<!--)|(\\<\\!\\[)|((\\&|\\%)[\\w\\-\\.]+;)/',
51 1 => '/(\\<!--)|(\\<)|(#PCDATA\\b)|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
52 2 => '/(\\<!--)|(\\()|(\')|(")|((?<=\\<)!(ENTITY|ATTLIST|ELEMENT|NOTATION)\\b)|(\\s(#(IMPLIED|REQUIRED|FIXED))|CDATA|ENTITY|NOTATION|NMTOKENS?|PUBLIC|SYSTEM\\b)|(#PCDATA\\b)|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
53 3 => '/(\\()|((\\&|\\%)[\\w\\-\\.]+;)|((?i)[a-z][a-z\\d\\-\\,:]+)/',
54 4 => '/((\\&|\\%)[\\w\\-\\.]+;)/',
55 5 => '/((\\&|\\%)[\\w\\-\\.]+;)/',
57 $this->_counts = array (
102 $this->_delim = array (
147 $this->_inner = array (
192 $this->_end = array (
200 $this->_states = array (
245 $this->_keywords = array (
316 $this->_parts = array (
355 $this->_subst = array (
400 $this->_conditions = array (
402 $this->_kwmap = array (
404 $this->_defClass = 'code';
405 $this->_checkDefines();