Codulle - L'explorateur de code sources

Accueil>> AlBulle >> Albulle1.0rc4 >> themes >> albulle

Informations fichier

Nom du fichier : html4strict.php
Taille du fichier : 10 Ko (254 lignes)
Language : PHP

  1. span style="color: #808080; font-style: italic;">/*************************************************************************************
  2. * html4strict.php
  3. * ---------------
  4. * Author: Nigel McNie (oracle.shinoda@gmail.com)
  5. * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
  6. * Release Version: 1.0.7.5
  7. * CVS Revision Version: $Revision: 1.5 $
  8. * Date Started: 2004/07/10
  9. * Last Modified: $Date: 2005/10/22 07:52:59 $
  10. *
  11. * HTML 4.01 strict language file for GeSHi.
  12. *
  13. * CHANGES
  14. * -------
  15. * 2004/11/27 (1.0.3)
  16. * - Added support for multiple object splitters
  17. * 2004/10/27 (1.0.2)
  18. * - Added support for URLs
  19. * 2004/08/05 (1.0.1)
  20. * - Added INS and DEL
  21. * - Removed the background colour from tags' styles
  22. * 2004/07/14 (1.0.0)
  23. * - First Release
  24. *
  25. * TODO (updated 2004/11/27)
  26. * -------------------------
  27. * * Check that only HTML4 strict attributes are highlighted
  28. * * Eliminate empty tags that aren't allowed in HTML4 strict
  29. * * Split to several files - html4trans, xhtml1 etc
  30. *
  31. *************************************************************************************
  32. *
  33. * This file is part of GeSHi.
  34. *
  35. * GeSHi is free software; you can redistribute it and/or modify
  36. * it under the terms of the GNU General Public License as published by
  37. * the Free Software Foundation; either version 2 of the License, or
  38. * (at your option) any later version.
  39. *
  40. * GeSHi is distributed in the hope that it will be useful,
  41. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  42. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43. * GNU General Public License for more details.
  44. *
  45. * You should have received a copy of the GNU General Public License
  46. * along with GeSHi; if not, write to the Free Software
  47. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  48. *
  49. ************************************************************************************/'LANG_NAME' => 'HTML',
  50. 'COMMENT_SINGLE''COMMENT_MULTI''<!--' => '-->'),
  51. 'CASE_KEYWORDS''QUOTEMARKS'"'", '"'),
  52. 'ESCAPE_CHAR' => '\\',
  53. 'KEYWORDS''&lt;a&gt;', '&lt;abbr&gt;', '&lt;acronym&gt;', '&lt;address&gt;', '&lt;applet&gt;',
  54. '&lt;a', '&lt;abbr', '&lt;acronym', '&lt;address', '&lt;applet',
  55. '&lt;/a&gt;', '&lt;/abbr&gt;', '&lt;/acronym&gt;', '&lt;/address&gt;', '&lt;/applet&gt;',
  56. '&lt;/a', '&lt;/abbr', '&lt;/acronym', '&lt;/address', '&lt;/applet',
  57.  
  58. '&lt;base&gt;', '&lt;basefont&gt;', '&lt;bdo&gt;', '&lt;big&gt;', '&lt;blockquote&gt;', '&lt;body&gt;', '&lt;br&gt;', '&lt;button&gt;', '&lt;b&gt;',
  59. '&lt;base', '&lt;basefont', '&lt;bdo', '&lt;big', '&lt;blockquote', '&lt;body', '&lt;br', '&lt;button', '&lt;b',
  60. '&lt;/base&gt;', '&lt;/basefont&gt;', '&lt;/bdo&gt;', '&lt;/big&gt;', '&lt;/blockquote&gt;', '&lt;/body&gt;', '&lt;/br&gt;', '&lt;/button&gt;', '&lt;/b&gt;',
  61. '&lt;/base', '&lt;/basefont', '&lt;/bdo', '&lt;/big', '&lt;/blockquote', '&lt;/body', '&lt;/br', '&lt;/button', '&lt;/b',
  62.  
  63. '&lt;caption&gt;', '&lt;center&gt;', '&lt;cite&gt;', '&lt;code&gt;', '&lt;colgroup&gt;', '&lt;col&gt;',
  64. '&lt;caption', '&lt;center', '&lt;cite', '&lt;code', '&lt;colgroup', '&lt;col',
  65. '&lt;/caption&gt;', '&lt;/center&gt;', '&lt;/cite&gt;', '&lt;/code&gt;', '&lt;/colgroup&gt;', '&lt;/col&gt;',
  66. '&lt;/caption', '&lt;/center', '&lt;/cite', '&lt;/code', '&lt;/colgroup', '&lt;/col',
  67.  
  68. '&lt;dd&gt;', '&lt;del&gt;', '&lt;dfn&gt;', '&lt;dir&gt;', '&lt;div&gt;', '&lt;dl&gt;', '&lt;dt&gt;',
  69. '&lt;dd', '&lt;del', '&lt;dfn', '&lt;dir', '&lt;div', '&lt;dl', '&lt;dt',
  70. '&lt;/dd&gt;', '&lt;/del&gt;', '&lt;/dfn&gt;', '&lt;/dir&gt;', '&lt;/div&gt;', '&lt;/dl&gt;', '&lt;/dt&gt;',
  71. '&lt;/dd', '&lt;/del', '&lt;/dfn', '&lt;/dir', '&lt;/div', '&lt;/dl', '&lt;/dt',
  72.  
  73. '&lt;em&gt;',
  74. '&lt;em',
  75. '&lt;/em&gt;',
  76. '&lt;/em',
  77.  
  78. '&lt;fieldset&gt;', '&lt;font&gt;', '&lt;form&gt;', '&lt;frame&gt;', '&lt;frameset&gt;',
  79. '&lt;fieldset', '&lt;font', '&lt;form', '&lt;frame', '&lt;frameset',
  80. '&lt;/fieldset&gt;', '&lt;/font&gt;', '&lt;/form&gt;', '&lt;/frame&gt;', '&lt;/frameset&gt;',
  81. '&lt;/fieldset', '&lt;/font', '&lt;/form', '&lt;/frame', '&lt;/frameset',
  82.  
  83. '&lt;h1&gt;', '&lt;h2&gt;', '&lt;h3&gt;', '&lt;h4&gt;', '&lt;h5&gt;', '&lt;h6&gt;', '&lt;head&gt;', '&lt;hr&gt;', '&lt;html&gt;',
  84. '&lt;h1', '&lt;h2', '&lt;h3', '&lt;h4', '&lt;h5', '&lt;h6', '&lt;head', '&lt;hr', '&lt;html',
  85. '&lt;/h1&gt;', '&lt;/h2&gt;', '&lt;/h3&gt;', '&lt;/h4&gt;', '&lt;/h5&gt;', '&lt;/h6&gt;', '&lt;/head&gt;', '&lt;/hr&gt;', '&lt;/html&gt;',
  86. '&lt;/h1', '&lt;/h2', '&lt;/h3', '&lt;/h4', '&lt;/h5', '&lt;/h6', '&lt;/head', '&lt;/hr', '&lt;/html',
  87.  
  88. '&lt;iframe&gt;', '&lt;ilayer&gt;', '&lt;img&gt;', '&lt;input&gt;', '&lt;ins&gt;', '&lt;isindex&gt;', '&lt;i&gt;',
  89. '&lt;iframe', '&lt;ilayer', '&lt;img', '&lt;input', '&lt;ins', '&lt;isindex', '&lt;i',
  90. '&lt;/iframe&gt;', '&lt;/ilayer&gt;', '&lt;/img&gt;', '&lt;/input&gt;', '&lt;/ins&gt;', '&lt;/isindex&gt;', '&lt;/i&gt;',
  91. '&lt;/iframe', '&lt;/ilayer', '&lt;/img', '&lt;/input', '&lt;/ins', '&lt;/isindex', '&lt;/i',
  92.  
  93. '&lt;kbd&gt;',
  94. '&lt;kbd',
  95. '&t;/kbd&gt;',
  96. '&lt;/kbd',
  97.  
  98. '&lt;label&gt;', '&lt;legend&gt;', '&lt;link&gt;', '&lt;li&gt;',
  99. '&lt;label', '&lt;legend', '&lt;link', '&lt;li',
  100. '&lt;/label&gt;', '&lt;/legend&gt;', '&lt;/link&gt;', '&lt;/li&gt;',
  101. '&lt;/label', '&lt;/legend', '&lt;/link', '&lt;/li',
  102.  
  103. '&lt;map&gt;', '&lt;meta&gt;',
  104. '&lt;map', '&lt;meta',
  105. '&lt;/map&gt;', '&lt;/meta&gt;',
  106. '&lt;/map', '&lt;/meta',
  107.  
  108. '&lt;noframes&gt;', '&lt;noscript&gt;',
  109. '&lt;noframes', '&lt;noscript',
  110. '&lt;/noframes&gt;', '&lt;/noscript&gt;',
  111. '&lt;/noframes', '&lt;/noscript',
  112.  
  113. '&lt;object&gt;', '&lt;ol&gt;', '&lt;optgroup&gt;', '&lt;option&gt;',
  114. '&lt;object', '&lt;ol', '&lt;optgroup', '&lt;option',
  115. '&lt;/object&gt;', '&lt;/ol&gt;', '&lt;/optgroup&gt;', '&lt;/option&gt;',
  116. '&lt;/object', '&lt;/ol', '&lt;/optgroup', '&lt;/option',
  117.  
  118. '&lt;param&gt;', '&lt;pre&gt;', '&lt;p&gt;',
  119. '&lt;param', '&lt;pre', '&lt;p',
  120. '&lt;/param&gt;', '&lt;/pre&gt;', '&lt;/p&gt;',
  121. '&lt;/param', '&lt;/pre', '&lt;/p',
  122.  
  123. '&lt;q&gt;',
  124. '&lt;q',
  125. '&lt;/q&gt;',
  126. '&lt;/q',
  127.  
  128. '&lt;samp&gt;', '&lt;script&gt;', '&lt;select&gt;', '&lt;small&gt;', '&lt;span&gt;', '&lt;strike&gt;', '&lt;strong&gt;', '&lt;style&gt;', '&lt;sub&gt;', '&lt;sup&gt;', '&lt;s&gt;',
  129. '&lt;samp', '&lt;script', '&lt;select', '&lt;small', '&lt;span', '&lt;strike', '&lt;strong', '&lt;style', '&lt;sub', '&lt;sup', '&lt;s',
  130. '&lt;/samp&gt;', '&lt;/script&gt;', '&lt;/select&gt;', '&lt;/small&gt;', '&lt;/span&gt;', '&lt;/strike&gt;', '&lt;/strong&gt;', '&lt;/style&gt;', '&lt;/sub&gt;', '&lt;/sup&gt;', '&lt;/s&gt;',
  131. '&lt;/samp', '&lt;/script', '&lt;/select', '&lt;/small', '&lt;/span', '&lt;/strike', '&lt;/strong', '&lt;/style', '&lt;/sub', '&lt;/sup', '&lt;/s',
  132.  
  133. '&lt;table&gt;', '&lt;tbody&gt;', '&lt;td&gt;', '&lt;textarea&gt;', '&lt;text&gt;', '&lt;tfoot&gt;', '&lt;thead&gt;', '&lt;th&gt;', '&lt;title&gt;', '&lt;tr&gt;', '&lt;tt&gt;',
  134. '&lt;table', '&lt;tbody', '&lt;td', '&lt;textarea', '&lt;text', '&lt;tfoot', '&lt;tfoot', '&lt;thead', '&lt;th', '&lt;title', '&lt;tr', '&lt;tt',
  135. '&lt;/table&gt;', '&lt;/tbody&gt;', '&lt;/td&gt;', '&lt;/textarea&gt;', '&lt;/text&gt;', '&lt;/tfoot&gt;', '&lt;/thead', '&lt;/tfoot', '&lt;/th&gt;', '&lt;/title&gt;', '&lt;/tr&gt;', '&lt;/tt&gt;',
  136. '&lt;/table', '&lt;/tbody', '&lt;/td', '&lt;/textarea', '&lt;/text', '&lt;/tfoot', '&lt;/tfoot', '&lt;/thead', '&lt;/th', '&lt;/title', '&lt;/tr', '&lt;/tt',
  137.  
  138. '&lt;ul&gt;', '&lt;u&gt;',
  139. '&lt;ul', '&lt;u',
  140. '&lt;/ul&gt;', '&lt;/ul&gt;',
  141. '&lt;/ul', '&lt;/u',
  142.  
  143. '&lt;var&gt;',
  144. '&lt;var',
  145. '&lt;/var&gt;',
  146. '&lt;/var',
  147.  
  148. '&gt;', '&lt;''abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
  149. 'background', 'bgcolor', 'border',
  150. 'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
  151. 'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
  152. 'enctype',
  153. 'face', 'for', 'frame', 'frameborder',
  154. 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
  155. 'id', 'ismap',
  156. 'label', 'lang', 'language', 'link', 'longdesc',
  157. 'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
  158. 'name', 'nohref', 'noresize', 'noshade', 'nowrap',
  159. 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
  160. 'profile', 'prompt',
  161. 'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
  162. 'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
  163. 'tabindex', 'target', 'text', 'title', 'type',
  164. 'usemap',
  165. 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
  166. 'width'
  167. )
  168. ),
  169. 'SYMBOLS''/', '='
  170. ),
  171. 'CASE_SENSITIVE''STYLES''KEYWORDS''color: #b1b100;',
  172. 2 => 'color: #000000; font-weight: bold;',
  173. 3 => 'color: #000066;'
  174. ),
  175. 'COMMENTS''MULTI' => 'color: #808080; font-style: italic;'
  176. ),
  177. 'ESCAPE_CHAR''color: #000099; font-weight: bold;'
  178. ),
  179. 'BRACKETS''color: #66cc66;'
  180. ),
  181. 'STRINGS''color: #ff0000;'
  182. ),
  183. 'NUMBERS''color: #cc66cc;'
  184. ),
  185. 'METHODS''SYMBOLS''color: #66cc66;'
  186. ),
  187. 'SCRIPT''color: #00bbdd;',
  188. 1 => 'color: #ddbb00;',
  189. 2 => 'color: #009900;'
  190. ),
  191. 'REGEXPS''URLS''',
  192. 2 => 'http://december.com/html/4/element/{FNAME}.html',
  193. 3 => ''
  194. ),
  195. 'OOLANG''OBJECT_SPLITTERS''REGEXPS''STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''<!DOCTYPE' => '>''&' => ';''<' => '>'
  196. )
  197. ),
  198. 'HIGHLIGHT_STRICT_BLOCK'

Liste des projets

Téléchargez Codulle

Publié par Codulle - v0.1.1 - © Bubulles Creations