html4strict.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * html4strict.php
00004  * ---------------
00005  * Author: Nigel McNie (nigel@geshi.org)
00006  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/07/10
00009  *
00010  * HTML 4.01 strict language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/12/28 (1.0.4)
00015  *   -  Removed escape character for strings
00016  * 2004/11/27 (1.0.3)
00017  *   -  Added support for multiple object splitters
00018  * 2004/10/27 (1.0.2)
00019  *   -  Added support for URLs
00020  * 2004/08/05 (1.0.1)
00021  *   -  Added INS and DEL
00022  *   -  Removed the background colour from tags' styles
00023  * 2004/07/14 (1.0.0)
00024  *   -  First Release
00025  *
00026  * TODO (updated 2004/11/27)
00027  * -------------------------
00028  * * Check that only HTML4 strict attributes are highlighted
00029  * * Eliminate empty tags that aren't allowed in HTML4 strict
00030  * * Split to several files - html4trans, xhtml1 etc
00031  *
00032  *************************************************************************************
00033  *
00034  *     This file is part of GeSHi.
00035  *
00036  *   GeSHi is free software; you can redistribute it and/or modify
00037  *   it under the terms of the GNU General Public License as published by
00038  *   the Free Software Foundation; either version 2 of the License, or
00039  *   (at your option) any later version.
00040  *
00041  *   GeSHi is distributed in the hope that it will be useful,
00042  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00043  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00044  *   GNU General Public License for more details.
00045  *
00046  *   You should have received a copy of the GNU General Public License
00047  *   along with GeSHi; if not, write to the Free Software
00048  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00049  *
00050  ************************************************************************************/
00051 
00052 $language_data = array (
00053      'LANG_NAME' => 'HTML',
00054      'COMMENT_SINGLE' => array(),
00055      'COMMENT_MULTI' => array('<!--' => '-->'),
00056      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00057      'QUOTEMARKS' => array("'", '"'),
00058      'ESCAPE_CHAR' => '',
00059      'KEYWORDS' => array(
00060           1 => array(
00061                ),
00062           2 => array(
00063                '&lt;a&gt;', '&lt;abbr&gt;', '&lt;acronym&gt;', '&lt;address&gt;', '&lt;applet&gt;',
00064                '&lt;a', '&lt;abbr', '&lt;acronym', '&lt;address', '&lt;applet',
00065                '&lt;/a&gt;', '&lt;/abbr&gt;', '&lt;/acronym&gt;', '&lt;/address&gt;', '&lt;/applet&gt;',
00066                '&lt;/a', '&lt;/abbr', '&lt;/acronym', '&lt;/address', '&lt;/applet',
00067 
00068                '&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;',
00069                '&lt;base', '&lt;basefont', '&lt;bdo', '&lt;big', '&lt;blockquote', '&lt;body', '&lt;br', '&lt;button', '&lt;b',
00070                '&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;',
00071                '&lt;/base', '&lt;/basefont', '&lt;/bdo', '&lt;/big', '&lt;/blockquote', '&lt;/body', '&lt;/br', '&lt;/button', '&lt;/b',
00072 
00073                '&lt;caption&gt;', '&lt;center&gt;', '&lt;cite&gt;', '&lt;code&gt;', '&lt;colgroup&gt;', '&lt;col&gt;',
00074                '&lt;caption', '&lt;center', '&lt;cite', '&lt;code', '&lt;colgroup', '&lt;col',
00075                '&lt;/caption&gt;', '&lt;/center&gt;', '&lt;/cite&gt;', '&lt;/code&gt;', '&lt;/colgroup&gt;', '&lt;/col&gt;',
00076                '&lt;/caption', '&lt;/center', '&lt;/cite', '&lt;/code', '&lt;/colgroup', '&lt;/col',
00077 
00078                '&lt;dd&gt;', '&lt;del&gt;', '&lt;dfn&gt;', '&lt;dir&gt;', '&lt;div&gt;', '&lt;dl&gt;', '&lt;dt&gt;',
00079                '&lt;dd', '&lt;del', '&lt;dfn', '&lt;dir', '&lt;div', '&lt;dl', '&lt;dt',
00080                '&lt;/dd&gt;', '&lt;/del&gt;', '&lt;/dfn&gt;', '&lt;/dir&gt;', '&lt;/div&gt;', '&lt;/dl&gt;', '&lt;/dt&gt;',
00081                '&lt;/dd', '&lt;/del', '&lt;/dfn', '&lt;/dir', '&lt;/div', '&lt;/dl', '&lt;/dt',
00082 
00083                '&lt;em&gt;',
00084                '&lt;em',
00085                '&lt;/em&gt;',
00086                '&lt;/em',
00087 
00088                '&lt;fieldset&gt;', '&lt;font&gt;', '&lt;form&gt;', '&lt;frame&gt;', '&lt;frameset&gt;',
00089                '&lt;fieldset', '&lt;font', '&lt;form', '&lt;frame', '&lt;frameset',
00090                '&lt;/fieldset&gt;', '&lt;/font&gt;', '&lt;/form&gt;', '&lt;/frame&gt;', '&lt;/frameset&gt;',
00091                '&lt;/fieldset', '&lt;/font', '&lt;/form', '&lt;/frame', '&lt;/frameset',
00092 
00093                '&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;',
00094                '&lt;h1', '&lt;h2', '&lt;h3', '&lt;h4', '&lt;h5', '&lt;h6', '&lt;head', '&lt;hr', '&lt;html',
00095                '&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;',
00096                '&lt;/h1', '&lt;/h2', '&lt;/h3', '&lt;/h4', '&lt;/h5', '&lt;/h6', '&lt;/head', '&lt;/hr', '&lt;/html',
00097 
00098                '&lt;iframe&gt;', '&lt;ilayer&gt;', '&lt;img&gt;', '&lt;input&gt;', '&lt;ins&gt;', '&lt;isindex&gt;', '&lt;i&gt;',
00099                '&lt;iframe', '&lt;ilayer', '&lt;img', '&lt;input', '&lt;ins', '&lt;isindex', '&lt;i',
00100                '&lt;/iframe&gt;', '&lt;/ilayer&gt;', '&lt;/img&gt;', '&lt;/input&gt;', '&lt;/ins&gt;', '&lt;/isindex&gt;', '&lt;/i&gt;',
00101                '&lt;/iframe', '&lt;/ilayer', '&lt;/img', '&lt;/input', '&lt;/ins', '&lt;/isindex', '&lt;/i',
00102 
00103                '&lt;kbd&gt;',
00104                '&lt;kbd',
00105                '&t;/kbd&gt;',
00106                '&lt;/kbd',
00107 
00108                '&lt;label&gt;', '&lt;legend&gt;', '&lt;link&gt;', '&lt;li&gt;',
00109                '&lt;label', '&lt;legend', '&lt;link', '&lt;li',
00110                '&lt;/label&gt;', '&lt;/legend&gt;', '&lt;/link&gt;', '&lt;/li&gt;',
00111                '&lt;/label', '&lt;/legend', '&lt;/link', '&lt;/li',
00112 
00113                '&lt;map&gt;', '&lt;meta&gt;',
00114                '&lt;map', '&lt;meta',
00115                '&lt;/map&gt;', '&lt;/meta&gt;',
00116                '&lt;/map', '&lt;/meta',
00117 
00118                '&lt;noframes&gt;', '&lt;noscript&gt;',
00119                '&lt;noframes', '&lt;noscript',
00120                '&lt;/noframes&gt;', '&lt;/noscript&gt;',
00121                '&lt;/noframes', '&lt;/noscript',
00122 
00123                '&lt;object&gt;', '&lt;ol&gt;', '&lt;optgroup&gt;', '&lt;option&gt;',
00124                '&lt;object', '&lt;ol', '&lt;optgroup', '&lt;option',
00125                '&lt;/object&gt;', '&lt;/ol&gt;', '&lt;/optgroup&gt;', '&lt;/option&gt;',
00126                '&lt;/object', '&lt;/ol', '&lt;/optgroup', '&lt;/option',
00127 
00128                '&lt;param&gt;', '&lt;pre&gt;', '&lt;p&gt;',
00129                '&lt;param', '&lt;pre', '&lt;p',
00130                '&lt;/param&gt;', '&lt;/pre&gt;', '&lt;/p&gt;',
00131                '&lt;/param', '&lt;/pre', '&lt;/p',
00132 
00133                '&lt;q&gt;',
00134                '&lt;q',
00135                '&lt;/q&gt;',
00136                '&lt;/q',
00137 
00138                '&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;',
00139                '&lt;samp', '&lt;script', '&lt;select', '&lt;small', '&lt;span', '&lt;strike', '&lt;strong', '&lt;style', '&lt;sub', '&lt;sup', '&lt;s',
00140                '&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;',
00141                '&lt;/samp', '&lt;/script', '&lt;/select', '&lt;/small', '&lt;/span', '&lt;/strike', '&lt;/strong', '&lt;/style', '&lt;/sub', '&lt;/sup', '&lt;/s',
00142 
00143                '&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;',
00144                '&lt;table', '&lt;tbody', '&lt;td', '&lt;textarea', '&lt;text', '&lt;tfoot', '&lt;tfoot', '&lt;thead', '&lt;th', '&lt;title', '&lt;tr', '&lt;tt',
00145                '&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;',
00146                '&lt;/table', '&lt;/tbody', '&lt;/td', '&lt;/textarea', '&lt;/text', '&lt;/tfoot', '&lt;/tfoot', '&lt;/thead', '&lt;/th', '&lt;/title', '&lt;/tr', '&lt;/tt',
00147 
00148                '&lt;ul&gt;', '&lt;u&gt;',
00149                '&lt;ul', '&lt;u',
00150                '&lt;/ul&gt;', '&lt;/ul&gt;',
00151                '&lt;/ul', '&lt;/u',
00152 
00153                '&lt;var&gt;',
00154                '&lt;var',
00155                '&lt;/var&gt;',
00156                '&lt;/var',
00157 
00158                '&gt;', '&lt;'
00159                ),
00160           3 => array(
00161                'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
00162                'background', 'bgcolor', 'border',
00163                'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
00164                'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
00165                'enctype',
00166                'face', 'for', 'frame', 'frameborder',
00167                'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
00168                'id', 'ismap',
00169                'label', 'lang', 'language', 'link', 'longdesc',
00170                'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
00171                'name', 'nohref', 'noresize', 'noshade', 'nowrap',
00172                'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
00173                'profile', 'prompt',
00174                'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
00175                'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
00176                'tabindex', 'target', 'text', 'title', 'type',
00177                'usemap',
00178                'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
00179                'width'
00180                )
00181           ),
00182      'SYMBOLS' => array(
00183           '/', '='
00184           ),
00185      'CASE_SENSITIVE' => array(
00186           GESHI_COMMENTS => false,
00187           1 => false,
00188           2 => false,
00189           3 => false,
00190           ),
00191      'STYLES' => array(
00192           'KEYWORDS' => array(
00193                1 => 'color: #b1b100;',
00194                2 => 'color: #000000; font-weight: bold;',
00195                3 => 'color: #000066;'
00196                ),
00197           'COMMENTS' => array(
00198                'MULTI' => 'color: #808080; font-style: italic;'
00199                ),
00200           'ESCAPE_CHAR' => array(
00201                0 => 'color: #000099; font-weight: bold;'
00202                ),
00203           'BRACKETS' => array(
00204                0 => 'color: #66cc66;'
00205                ),
00206           'STRINGS' => array(
00207                0 => 'color: #ff0000;'
00208                ),
00209           'NUMBERS' => array(
00210                0 => 'color: #cc66cc;'
00211                ),
00212           'METHODS' => array(
00213                ),
00214           'SYMBOLS' => array(
00215                0 => 'color: #66cc66;'
00216                ),
00217           'SCRIPT' => array(
00218                0 => 'color: #00bbdd;',
00219                1 => 'color: #ddbb00;',
00220                2 => 'color: #009900;'
00221                ),
00222           'REGEXPS' => array(
00223                )
00224           ),
00225      'URLS' => array(
00226           1 => '',
00227           2 => 'http://december.com/html/4/element/{FNAME}.html',
00228           3 => ''
00229           ),
00230      'OOLANG' => false,
00231      'OBJECT_SPLITTERS' => array(
00232           ),
00233      'REGEXPS' => array(
00234           ),
00235      'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
00236      'SCRIPT_DELIMITERS' => array(
00237           0 => array(
00238                '<!DOCTYPE' => '>'
00239                ),
00240           1 => array(
00241                '&' => ';'
00242                ),
00243           2 => array(
00244                '<' => '>'
00245                )
00246      ),
00247      'HIGHLIGHT_STRICT_BLOCK' => array(
00248           0 => false,
00249           1 => false,
00250           2 => true
00251         ),
00252     'TAB_WIDTH' => 4
00253 );
00254 
00255 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8