HTML.php 5.0 KB

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