2 /*************************************************************************************
5 * Author: Nigel McNie (oracle.shinoda@gmail.com)
6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
7 * Release Version: 1.0.7.6
8 * CVS Revision Version: $Revision: 1.8 $
9 * Date Started: 2004/07/10
10 * Last Modified: $Date: 2005/12/30 04:52:10 $
12 * HTML 4.01 strict language file for GeSHi.
17 * - Removed escape character for strings
19 * - Added support for multiple object splitters
21 * - Added support for URLs
24 * - Removed the background colour from tags' styles
28 * TODO (updated 2004/11/27)
29 * -------------------------
30 * * Check that only HTML4 strict attributes are highlighted
31 * * Eliminate empty tags that aren't allowed in HTML4 strict
32 * * Split to several files - html4trans, xhtml1 etc
34 *************************************************************************************
36 * This file is part of GeSHi.
38 * GeSHi is free software; you can redistribute it and/or modify
39 * it under the terms of the GNU General Public License as published by
40 * the Free Software Foundation; either version 2 of the License, or
41 * (at your option) any later version.
43 * GeSHi is distributed in the hope that it will be useful,
44 * but WITHOUT ANY WARRANTY; without even the implied warranty of
45 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 * GNU General Public License for more details.
48 * You should have received a copy of the GNU General Public License
49 * along with GeSHi; if not, write to the Free Software
50 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
52 ************************************************************************************/
54 $language_data = array (
55 'LANG_NAME' => 'HTML',
56 'COMMENT_SINGLE' => array(),
57 'COMMENT_MULTI' => array('<!--' => '-->'),
58 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
59 'QUOTEMARKS' => array("'", '"'),
65 '<a>', '<abbr>', '<acronym>', '<address>', '<applet>',
66 '<a', '<abbr', '<acronym', '<address', '<applet',
67 '</a>', '</abbr>', '</acronym>', '</address>', '</applet>',
68 '</a', '</abbr', '</acronym', '</address', '</applet',
70 '<base>', '<basefont>', '<bdo>', '<big>', '<blockquote>', '<body>', '<br>', '<button>', '<b>',
71 '<base', '<basefont', '<bdo', '<big', '<blockquote', '<body', '<br', '<button', '<b',
72 '</base>', '</basefont>', '</bdo>', '</big>', '</blockquote>', '</body>', '</br>', '</button>', '</b>',
73 '</base', '</basefont', '</bdo', '</big', '</blockquote', '</body', '</br', '</button', '</b',
75 '<caption>', '<center>', '<cite>', '<code>', '<colgroup>', '<col>',
76 '<caption', '<center', '<cite', '<code', '<colgroup', '<col',
77 '</caption>', '</center>', '</cite>', '</code>', '</colgroup>', '</col>',
78 '</caption', '</center', '</cite', '</code', '</colgroup', '</col',
80 '<dd>', '<del>', '<dfn>', '<dir>', '<div>', '<dl>', '<dt>',
81 '<dd', '<del', '<dfn', '<dir', '<div', '<dl', '<dt',
82 '</dd>', '</del>', '</dfn>', '</dir>', '</div>', '</dl>', '</dt>',
83 '</dd', '</del', '</dfn', '</dir', '</div', '</dl', '</dt',
90 '<fieldset>', '<font>', '<form>', '<frame>', '<frameset>',
91 '<fieldset', '<font', '<form', '<frame', '<frameset',
92 '</fieldset>', '</font>', '</form>', '</frame>', '</frameset>',
93 '</fieldset', '</font', '</form', '</frame', '</frameset',
95 '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<head>', '<hr>', '<html>',
96 '<h1', '<h2', '<h3', '<h4', '<h5', '<h6', '<head', '<hr', '<html',
97 '</h1>', '</h2>', '</h3>', '</h4>', '</h5>', '</h6>', '</head>', '</hr>', '</html>',
98 '</h1', '</h2', '</h3', '</h4', '</h5', '</h6', '</head', '</hr', '</html',
100 '<iframe>', '<ilayer>', '<img>', '<input>', '<ins>', '<isindex>', '<i>',
101 '<iframe', '<ilayer', '<img', '<input', '<ins', '<isindex', '<i',
102 '</iframe>', '</ilayer>', '</img>', '</input>', '</ins>', '</isindex>', '</i>',
103 '</iframe', '</ilayer', '</img', '</input', '</ins', '</isindex', '</i',
110 '<label>', '<legend>', '<link>', '<li>',
111 '<label', '<legend', '<link', '<li',
112 '</label>', '</legend>', '</link>', '</li>',
113 '</label', '</legend', '</link', '</li',
115 '<map>', '<meta>',
116 '<map', '<meta',
117 '</map>', '</meta>',
118 '</map', '</meta',
120 '<noframes>', '<noscript>',
121 '<noframes', '<noscript',
122 '</noframes>', '</noscript>',
123 '</noframes', '</noscript',
125 '<object>', '<ol>', '<optgroup>', '<option>',
126 '<object', '<ol', '<optgroup', '<option',
127 '</object>', '</ol>', '</optgroup>', '</option>',
128 '</object', '</ol', '</optgroup', '</option',
130 '<param>', '<pre>', '<p>',
131 '<param', '<pre', '<p',
132 '</param>', '</pre>', '</p>',
133 '</param', '</pre', '</p',
140 '<samp>', '<script>', '<select>', '<small>', '<span>', '<strike>', '<strong>', '<style>', '<sub>', '<sup>', '<s>',
141 '<samp', '<script', '<select', '<small', '<span', '<strike', '<strong', '<style', '<sub', '<sup', '<s',
142 '</samp>', '</script>', '</select>', '</small>', '</span>', '</strike>', '</strong>', '</style>', '</sub>', '</sup>', '</s>',
143 '</samp', '</script', '</select', '</small', '</span', '</strike', '</strong', '</style', '</sub', '</sup', '</s',
145 '<table>', '<tbody>', '<td>', '<textarea>', '<text>', '<tfoot>', '<thead>', '<th>', '<title>', '<tr>', '<tt>',
146 '<table', '<tbody', '<td', '<textarea', '<text', '<tfoot', '<tfoot', '<thead', '<th', '<title', '<tr', '<tt',
147 '</table>', '</tbody>', '</td>', '</textarea>', '</text>', '</tfoot>', '</thead', '</tfoot', '</th>', '</title>', '</tr>', '</tt>',
148 '</table', '</tbody', '</td', '</textarea', '</text', '</tfoot', '</tfoot', '</thead', '</th', '</title', '</tr', '</tt',
150 '<ul>', '<u>',
152 '</ul>', '</ul>',
163 'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
164 'background', 'bgcolor', 'border',
165 'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
166 'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
168 'face', 'for', 'frame', 'frameborder',
169 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
171 'label', 'lang', 'language', 'link', 'longdesc',
172 'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
173 'name', 'nohref', 'noresize', 'noshade', 'nowrap',
174 'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
176 'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
177 'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
178 'tabindex', 'target', 'text', 'title', 'type',
180 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
187 'CASE_SENSITIVE' => array(
188 GESHI_COMMENTS
=> false
,
195 1 => 'color: #b1b100;',
196 2 => 'color: #000000; font-weight: bold;',
197 3 => 'color: #000066;'
200 'MULTI' => 'color: #808080; font-style: italic;'
202 'ESCAPE_CHAR' => array(
203 0 => 'color: #000099; font-weight: bold;'
206 0 => 'color: #66cc66;'
209 0 => 'color: #ff0000;'
212 0 => 'color: #cc66cc;'
217 0 => 'color: #66cc66;'
220 0 => 'color: #00bbdd;',
221 1 => 'color: #ddbb00;',
222 2 => 'color: #009900;'
229 2 => 'http://december.com/html/4/element/{FNAME}.html',
233 'OBJECT_SPLITTERS' => array(
237 'STRICT_MODE_APPLIES' => GESHI_ALWAYS
,
238 'SCRIPT_DELIMITERS' => array(
249 'HIGHLIGHT_STRICT_BLOCK' => array(