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