Source code for file /geshi/geshi/html4strict.php
Documentation is available at html4strict.php
/***********************************************************************************
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.8
* CVS Revision Version: $Revision: 1.10 $
* Date Started: 2004/07/10
* Last Modified: $Date: 2006/02/25 00:46:33 $
* HTML 4.01 strict language file for GeSHi.
* - Removed escape character for strings
* - Added support for multiple object splitters
* - Added support for URLs
* - Removed the background colour from tags' styles
* TODO (updated 2004/11/27)
* -------------------------
* * Check that only HTML4 strict attributes are highlighted
* * Eliminate empty tags that aren't allowed in HTML4 strict
* * Split to several files - html4trans, xhtml1 etc
************************************************************************************
* This file is part of GeSHi.
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
************************************************************************************/
'COMMENT_SINGLE' =>
array(),
'COMMENT_MULTI' =>
array('<!--' =>
'-->'),
'QUOTEMARKS' =>
array("'", '"'),
'<a>', '<abbr>', '<acronym>', '<address>', '<applet>',
'<a', '<abbr', '<acronym', '<address', '<applet',
'</a>', '</abbr>', '</acronym>', '</address>', '</applet>',
'</a', '</abbr', '</acronym', '</address', '</applet',
'<base>', '<basefont>', '<bdo>', '<big>', '<blockquote>', '<body>', '<br>', '<button>', '<b>',
'<base', '<basefont', '<bdo', '<big', '<blockquote', '<body', '<br', '<button', '<b',
'</base>', '</basefont>', '</bdo>', '</big>', '</blockquote>', '</body>', '</br>', '</button>', '</b>',
'</base', '</basefont', '</bdo', '</big', '</blockquote', '</body', '</br', '</button', '</b',
'<caption>', '<center>', '<cite>', '<code>', '<colgroup>', '<col>',
'<caption', '<center', '<cite', '<code', '<colgroup', '<col',
'</caption>', '</center>', '</cite>', '</code>', '</colgroup>', '</col>',
'</caption', '</center', '</cite', '</code', '</colgroup', '</col',
'<dd>', '<del>', '<dfn>', '<dir>', '<div>', '<dl>', '<dt>',
'<dd', '<del', '<dfn', '<dir', '<div', '<dl', '<dt',
'</dd>', '</del>', '</dfn>', '</dir>', '</div>', '</dl>', '</dt>',
'</dd', '</del', '</dfn', '</dir', '</div', '</dl', '</dt',
'<fieldset>', '<font>', '<form>', '<frame>', '<frameset>',
'<fieldset', '<font', '<form', '<frame', '<frameset',
'</fieldset>', '</font>', '</form>', '</frame>', '</frameset>',
'</fieldset', '</font', '</form', '</frame', '</frameset',
'<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<head>', '<hr>', '<html>',
'<h1', '<h2', '<h3', '<h4', '<h5', '<h6', '<head', '<hr', '<html',
'</h1>', '</h2>', '</h3>', '</h4>', '</h5>', '</h6>', '</head>', '</hr>', '</html>',
'</h1', '</h2', '</h3', '</h4', '</h5', '</h6', '</head', '</hr', '</html',
'<iframe>', '<ilayer>', '<img>', '<input>', '<ins>', '<isindex>', '<i>',
'<iframe', '<ilayer', '<img', '<input', '<ins', '<isindex', '<i',
'</iframe>', '</ilayer>', '</img>', '</input>', '</ins>', '</isindex>', '</i>',
'</iframe', '</ilayer', '</img', '</input', '</ins', '</isindex', '</i',
'<label>', '<legend>', '<link>', '<li>',
'<label', '<legend', '<link', '<li',
'</label>', '</legend>', '</link>', '</li>',
'</label', '</legend', '</link', '</li',
'<map>', '<meta>',
'</map>', '</meta>',
'<noframes>', '<noscript>',
'<noframes', '<noscript',
'</noframes>', '</noscript>',
'</noframes', '</noscript',
'<object>', '<ol>', '<optgroup>', '<option>',
'<object', '<ol', '<optgroup', '<option',
'</object>', '</ol>', '</optgroup>', '</option>',
'</object', '</ol', '</optgroup', '</option',
'<param>', '<pre>', '<p>',
'<param', '<pre', '<p',
'</param>', '</pre>', '</p>',
'</param', '</pre', '</p',
'<samp>', '<script>', '<select>', '<small>', '<span>', '<strike>', '<strong>', '<style>', '<sub>', '<sup>', '<s>',
'<samp', '<script', '<select', '<small', '<span', '<strike', '<strong', '<style', '<sub', '<sup', '<s',
'</samp>', '</script>', '</select>', '</small>', '</span>', '</strike>', '</strong>', '</style>', '</sub>', '</sup>', '</s>',
'</samp', '</script', '</select', '</small', '</span', '</strike', '</strong', '</style', '</sub', '</sup', '</s',
'<table>', '<tbody>', '<td>', '<textarea>', '<text>', '<tfoot>', '<thead>', '<th>', '<title>', '<tr>', '<tt>',
'<table', '<tbody', '<td', '<textarea', '<text', '<tfoot', '<tfoot', '<thead', '<th', '<title', '<tr', '<tt',
'</table>', '</tbody>', '</td>', '</textarea>', '</text>', '</tfoot>', '</thead', '</tfoot', '</th>', '</title>', '</tr>', '</tt>',
'</table', '</tbody', '</td', '</textarea', '</text', '</tfoot', '</tfoot', '</thead', '</th', '</title', '</tr', '</tt',
'<ul>', '<u>',
'</ul>', '</ul>',
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis',
'background', 'bgcolor', 'border',
'cellpadding', 'cellspacing', 'char', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords',
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled',
'face', 'for', 'frame', 'frameborder',
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv',
'label', 'lang', 'language', 'link', 'longdesc',
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple',
'name', 'nohref', 'noresize', 'noshade', 'nowrap',
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload',
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules',
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary',
'tabindex', 'target', 'text', 'title', 'type',
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace',
'CASE_SENSITIVE' =>
array(
2 =>
'color: #000000; font-weight: bold;',
'MULTI' =>
'color: #808080; font-style: italic;'
0 =>
'color: #000099; font-weight: bold;'
2 =>
'http://december.com/html/4/element/{FNAME}.html',
'OBJECT_SPLITTERS' =>
array(
'STRICT_MODE_APPLIES' =>
GESHI_ALWAYS,
'SCRIPT_DELIMITERS' =>
array(
'HIGHLIGHT_STRICT_BLOCK' =>
array(