[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
1 <?php 2 /************************************************************************************* 3 * html4strict.php 4 * --------------- 5 * Author: Nigel McNie (oracle.shinoda@gmail.com) 6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) 7 * Release Version: 1.0.7.15 8 * CVS Revision Version: $Revision: 1.15.2.4 $ 9 * Date Started: 2004/07/10 10 * Last Modified: $Date: 2006/09/23 02:05:47 $ 11 * 12 * HTML 4.01 strict language file for GeSHi. 13 * 14 * CHANGES 15 * ------- 16 * 2005/12/28 (1.0.4) 17 * - Removed escape character for strings 18 * 2004/11/27 (1.0.3) 19 * - Added support for multiple object splitters 20 * 2004/10/27 (1.0.2) 21 * - Added support for URLs 22 * 2004/08/05 (1.0.1) 23 * - Added INS and DEL 24 * - Removed the background colour from tags' styles 25 * 2004/07/14 (1.0.0) 26 * - First Release 27 * 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 33 * 34 ************************************************************************************* 35 * 36 * This file is part of GeSHi. 37 * 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. 42 * 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. 47 * 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 51 * 52 ************************************************************************************/ 53 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("'", '"'), 60 'ESCAPE_CHAR' => '', 61 'KEYWORDS' => array( 62 1 => array( 63 ), 64 2 => 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', 69 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', 74 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', 79 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', 84 85 '<em>', 86 '<em', 87 '</em>', 88 '</em', 89 90 '<fieldset>', '<font>', '<form>', '<frame>', '<frameset>', 91 '<fieldset', '<font', '<form', '<frame', '<frameset', 92 '</fieldset>', '</font>', '</form>', '</frame>', '</frameset>', 93 '</fieldset', '</font', '</form', '</frame', '</frameset', 94 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', 99 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', 104 105 '<kbd>', 106 '<kbd', 107 '&t;/kbd>', 108 '</kbd', 109 110 '<label>', '<legend>', '<link>', '<li>', 111 '<label', '<legend', '<link', '<li', 112 '</label>', '</legend>', '</link>', '</li>', 113 '</label', '</legend', '</link', '</li', 114 115 '<map>', '<meta>', 116 '<map', '<meta', 117 '</map>', '</meta>', 118 '</map', '</meta', 119 120 '<noframes>', '<noscript>', 121 '<noframes', '<noscript', 122 '</noframes>', '</noscript>', 123 '</noframes', '</noscript', 124 125 '<object>', '<ol>', '<optgroup>', '<option>', 126 '<object', '<ol', '<optgroup', '<option', 127 '</object>', '</ol>', '</optgroup>', '</option>', 128 '</object', '</ol', '</optgroup', '</option', 129 130 '<param>', '<pre>', '<p>', 131 '<param', '<pre', '<p', 132 '</param>', '</pre>', '</p>', 133 '</param', '</pre', '</p', 134 135 '<q>', 136 '<q', 137 '</q>', 138 '</q', 139 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', 144 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', 149 150 '<ul>', '<u>', 151 '<ul', '<u', 152 '</ul>', '</ul>', 153 '</ul', '</u', 154 155 '<var>', 156 '<var', 157 '</var>', 158 '</var', 159 160 '>', '<' 161 ), 162 3 => array( 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', 167 'enctype', 168 'face', 'for', 'frame', 'frameborder', 169 'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', 170 'id', 'ismap', 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', 175 'profile', 'prompt', 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', 179 'usemap', 180 'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', 181 'width' 182 ) 183 ), 184 'SYMBOLS' => array( 185 '/', '=' 186 ), 187 'CASE_SENSITIVE' => array( 188 GESHI_COMMENTS => false, 189 1 => false, 190 2 => false, 191 3 => false, 192 ), 193 'STYLES' => array( 194 'KEYWORDS' => array( 195 1 => 'color: #b1b100;', 196 2 => 'color: #000000; font-weight: bold;', 197 3 => 'color: #000066;' 198 ), 199 'COMMENTS' => array( 200 'MULTI' => 'color: #808080; font-style: italic;' 201 ), 202 'ESCAPE_CHAR' => array( 203 0 => 'color: #000099; font-weight: bold;' 204 ), 205 'BRACKETS' => array( 206 0 => 'color: #66cc66;' 207 ), 208 'STRINGS' => array( 209 0 => 'color: #ff0000;' 210 ), 211 'NUMBERS' => array( 212 0 => 'color: #cc66cc;' 213 ), 214 'METHODS' => array( 215 ), 216 'SYMBOLS' => array( 217 0 => 'color: #66cc66;' 218 ), 219 'SCRIPT' => array( 220 0 => 'color: #00bbdd;', 221 1 => 'color: #ddbb00;', 222 2 => 'color: #009900;' 223 ), 224 'REGEXPS' => array( 225 ) 226 ), 227 'URLS' => array( 228 1 => '', 229 2 => 'http://december.com/html/4/element/{FNAME}.html', 230 3 => '' 231 ), 232 'OOLANG' => false, 233 'OBJECT_SPLITTERS' => array( 234 ), 235 'REGEXPS' => array( 236 ), 237 'STRICT_MODE_APPLIES' => GESHI_ALWAYS, 238 'SCRIPT_DELIMITERS' => array( 239 0 => array( 240 '<!DOCTYPE' => '>' 241 ), 242 1 => array( 243 '&' => ';' 244 ), 245 2 => array( 246 '<' => '>' 247 ) 248 ), 249 'HIGHLIGHT_STRICT_BLOCK' => array( 250 0 => false, 251 1 => false, 252 2 => true 253 ) 254 ); 255 256 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |