Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Unknown

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /geshi/geshi/html4strict.php

Documentation is available at html4strict.php

  1. <?php
  2. /***********************************************************************************
  3.  * html4strict.php
  4.  * ---------------
  5.  * Author: Nigel McNie ([email protected])
  6.  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
  7.  * Release Version: 1.0.7.8
  8.  * CVS Revision Version: $Revision: 1.10 $
  9.  * Date Started: 2004/07/10
  10.  * Last Modified: $Date: 2006/02/25 00:46:33 $
  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.  
  55. $language_data array (
  56.     'LANG_NAME' => 'HTML',
  57.     'COMMENT_SINGLE' => array(),
  58.     'COMMENT_MULTI' => array('<!--' => '-->'),
  59.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  60.     'QUOTEMARKS' => array("'"'"'),
  61.     'ESCAPE_CHAR' => '',
  62.     'KEYWORDS' => array(
  63.         => array(
  64.             ),
  65.         => array(
  66.             '&lt;a&gt;''&lt;abbr&gt;''&lt;acronym&gt;''&lt;address&gt;''&lt;applet&gt;',
  67.             '&lt;a''&lt;abbr''&lt;acronym''&lt;address''&lt;applet',
  68.             '&lt;/a&gt;''&lt;/abbr&gt;''&lt;/acronym&gt;''&lt;/address&gt;''&lt;/applet&gt;',
  69.             '&lt;/a''&lt;/abbr''&lt;/acronym''&lt;/address''&lt;/applet',
  70.  
  71.             '&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;',
  72.             '&lt;base''&lt;basefont''&lt;bdo''&lt;big''&lt;blockquote''&lt;body''&lt;br''&lt;button''&lt;b',
  73.             '&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;',
  74.             '&lt;/base''&lt;/basefont''&lt;/bdo''&lt;/big''&lt;/blockquote''&lt;/body''&lt;/br''&lt;/button''&lt;/b',
  75.  
  76.             '&lt;caption&gt;''&lt;center&gt;''&lt;cite&gt;''&lt;code&gt;''&lt;colgroup&gt;''&lt;col&gt;',
  77.             '&lt;caption''&lt;center''&lt;cite''&lt;code''&lt;colgroup''&lt;col',
  78.             '&lt;/caption&gt;''&lt;/center&gt;''&lt;/cite&gt;''&lt;/code&gt;''&lt;/colgroup&gt;''&lt;/col&gt;',
  79.             '&lt;/caption''&lt;/center''&lt;/cite''&lt;/code''&lt;/colgroup''&lt;/col',
  80.  
  81.             '&lt;dd&gt;''&lt;del&gt;''&lt;dfn&gt;''&lt;dir&gt;''&lt;div&gt;''&lt;dl&gt;''&lt;dt&gt;',
  82.             '&lt;dd''&lt;del''&lt;dfn''&lt;dir''&lt;div''&lt;dl''&lt;dt',
  83.             '&lt;/dd&gt;''&lt;/del&gt;''&lt;/dfn&gt;''&lt;/dir&gt;''&lt;/div&gt;''&lt;/dl&gt;''&lt;/dt&gt;',
  84.             '&lt;/dd''&lt;/del''&lt;/dfn''&lt;/dir''&lt;/div''&lt;/dl''&lt;/dt',
  85.  
  86.             '&lt;em&gt;',
  87.             '&lt;em',
  88.             '&lt;/em&gt;',
  89.             '&lt;/em',
  90.  
  91.             '&lt;fieldset&gt;''&lt;font&gt;''&lt;form&gt;''&lt;frame&gt;''&lt;frameset&gt;',
  92.             '&lt;fieldset''&lt;font''&lt;form''&lt;frame''&lt;frameset',
  93.             '&lt;/fieldset&gt;''&lt;/font&gt;''&lt;/form&gt;''&lt;/frame&gt;''&lt;/frameset&gt;',
  94.             '&lt;/fieldset''&lt;/font''&lt;/form''&lt;/frame''&lt;/frameset',
  95.  
  96.             '&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;',
  97.             '&lt;h1''&lt;h2''&lt;h3''&lt;h4''&lt;h5''&lt;h6''&lt;head''&lt;hr''&lt;html',
  98.             '&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;',
  99.             '&lt;/h1''&lt;/h2''&lt;/h3''&lt;/h4''&lt;/h5''&lt;/h6''&lt;/head''&lt;/hr''&lt;/html',
  100.  
  101.             '&lt;iframe&gt;''&lt;ilayer&gt;''&lt;img&gt;''&lt;input&gt;''&lt;ins&gt;''&lt;isindex&gt;''&lt;i&gt;',
  102.             '&lt;iframe''&lt;ilayer''&lt;img''&lt;input''&lt;ins''&lt;isindex''&lt;i',
  103.             '&lt;/iframe&gt;''&lt;/ilayer&gt;''&lt;/img&gt;''&lt;/input&gt;''&lt;/ins&gt;''&lt;/isindex&gt;''&lt;/i&gt;',
  104.             '&lt;/iframe''&lt;/ilayer''&lt;/img''&lt;/input''&lt;/ins''&lt;/isindex''&lt;/i',
  105.  
  106.             '&lt;kbd&gt;',
  107.             '&lt;kbd',
  108.             '&t;/kbd&gt;',
  109.             '&lt;/kbd',
  110.  
  111.             '&lt;label&gt;''&lt;legend&gt;''&lt;link&gt;''&lt;li&gt;',
  112.             '&lt;label''&lt;legend''&lt;link''&lt;li',
  113.             '&lt;/label&gt;''&lt;/legend&gt;''&lt;/link&gt;''&lt;/li&gt;',
  114.             '&lt;/label''&lt;/legend''&lt;/link''&lt;/li',
  115.  
  116.             '&lt;map&gt;''&lt;meta&gt;',
  117.             '&lt;map''&lt;meta',
  118.             '&lt;/map&gt;''&lt;/meta&gt;',
  119.             '&lt;/map''&lt;/meta',
  120.  
  121.             '&lt;noframes&gt;''&lt;noscript&gt;',
  122.             '&lt;noframes''&lt;noscript',
  123.             '&lt;/noframes&gt;''&lt;/noscript&gt;',
  124.             '&lt;/noframes''&lt;/noscript',
  125.  
  126.             '&lt;object&gt;''&lt;ol&gt;''&lt;optgroup&gt;''&lt;option&gt;',
  127.             '&lt;object''&lt;ol''&lt;optgroup''&lt;option',
  128.             '&lt;/object&gt;''&lt;/ol&gt;''&lt;/optgroup&gt;''&lt;/option&gt;',
  129.             '&lt;/object''&lt;/ol''&lt;/optgroup''&lt;/option',
  130.  
  131.             '&lt;param&gt;''&lt;pre&gt;''&lt;p&gt;',
  132.             '&lt;param''&lt;pre''&lt;p',
  133.             '&lt;/param&gt;''&lt;/pre&gt;''&lt;/p&gt;',
  134.             '&lt;/param''&lt;/pre''&lt;/p',
  135.  
  136.             '&lt;q&gt;',
  137.             '&lt;q',
  138.             '&lt;/q&gt;',
  139.             '&lt;/q',
  140.  
  141.             '&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;',
  142.             '&lt;samp''&lt;script''&lt;select''&lt;small''&lt;span''&lt;strike''&lt;strong''&lt;style''&lt;sub''&lt;sup''&lt;s',
  143.             '&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;',
  144.             '&lt;/samp''&lt;/script''&lt;/select''&lt;/small''&lt;/span''&lt;/strike''&lt;/strong''&lt;/style''&lt;/sub''&lt;/sup''&lt;/s',
  145.  
  146.             '&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;',
  147.             '&lt;table''&lt;tbody''&lt;td''&lt;textarea''&lt;text''&lt;tfoot''&lt;tfoot''&lt;thead''&lt;th''&lt;title''&lt;tr''&lt;tt',
  148.             '&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;',
  149.             '&lt;/table''&lt;/tbody''&lt;/td''&lt;/textarea''&lt;/text''&lt;/tfoot''&lt;/tfoot''&lt;/thead''&lt;/th''&lt;/title''&lt;/tr''&lt;/tt',
  150.  
  151.             '&lt;ul&gt;''&lt;u&gt;',
  152.             '&lt;ul''&lt;u',
  153.             '&lt;/ul&gt;''&lt;/ul&gt;',
  154.             '&lt;/ul''&lt;/u',
  155.  
  156.             '&lt;var&gt;',
  157.             '&lt;var',
  158.             '&lt;/var&gt;',
  159.             '&lt;/var',
  160.  
  161.             '&gt;''&lt;'
  162.             ),
  163.         => array(
  164.             'abbr''accept-charset''accept''accesskey''action''align''alink''alt''archive''axis',
  165.             'background''bgcolor''border',
  166.             'cellpadding''cellspacing''char''char''charoff''charset''checked''cite''class''classid''clear''code''codebase''codetype''color''cols''colspan''compact''content''coords',
  167.             'data''datetime''declare''defer''dir''disabled',
  168.             'enctype',
  169.             'face''for''frame''frameborder',
  170.             'headers''height''href''hreflang''hspace''http-equiv',
  171.             'id''ismap',
  172.             'label''lang''language''link''longdesc',
  173.             'marginheight''marginwidth''maxlength''media''method''multiple',
  174.             'name''nohref''noresize''noshade''nowrap',
  175.             'object''onblur''onchange''onclick''ondblclick''onfocus''onkeydown''onkeypress''onkeyup''onload''onmousedown''onmousemove''onmouseout''onmouseover''onmouseup''onreset''onselect''onsubmit''onunload',
  176.             'profile''prompt',
  177.             'readonly''rel''rev''rowspan''rows''rules',
  178.             'scheme''scope''scrolling''selected''shape''size''span''src''standby''start''style''summary',
  179.             'tabindex''target''text''title''type',
  180.             'usemap',
  181.             'valign''value''valuetype''version''vlink''vspace',
  182.             'width'
  183.             )
  184.         ),
  185.     'SYMBOLS' => array(
  186.         '/''='
  187.         ),
  188.     'CASE_SENSITIVE' => array(
  189.         GESHI_COMMENTS => false,
  190.         => false,
  191.         => false,
  192.         => false,
  193.         ),
  194.     'STYLES' => array(
  195.         'KEYWORDS' => array(
  196.             => 'color: #b1b100;',
  197.             => 'color: #000000; font-weight: bold;',
  198.             => 'color: #000066;'
  199.             ),
  200.         'COMMENTS' => array(
  201.             'MULTI' => 'color: #808080; font-style: italic;'
  202.             ),
  203.         'ESCAPE_CHAR' => array(
  204.             => 'color: #000099; font-weight: bold;'
  205.             ),
  206.         'BRACKETS' => array(
  207.             => 'color: #66cc66;'
  208.             ),
  209.         'STRINGS' => array(
  210.             => 'color: #ff0000;'
  211.             ),
  212.         'NUMBERS' => array(
  213.             => 'color: #cc66cc;'
  214.             ),
  215.         'METHODS' => array(
  216.             ),
  217.         'SYMBOLS' => array(
  218.             => 'color: #66cc66;'
  219.             ),
  220.         'SCRIPT' => array(
  221.             => 'color: #00bbdd;',
  222.             => 'color: #ddbb00;',
  223.             => 'color: #009900;'
  224.             ),
  225.         'REGEXPS' => array(
  226.             )
  227.         ),
  228.     'URLS' => array(
  229.         => '',
  230.         => 'http://december.com/html/4/element/{FNAME}.html',
  231.         => ''
  232.         ),
  233.     'OOLANG' => false,
  234.     'OBJECT_SPLITTERS' => array(
  235.         ),
  236.     'REGEXPS' => array(
  237.         ),
  238.     'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
  239.     'SCRIPT_DELIMITERS' => array(
  240.         => array(
  241.             '<!DOCTYPE' => '>'
  242.             ),
  243.         => array(
  244.             '&' => ';'
  245.             ),
  246.         => array(
  247.             '<' => '>'
  248.             )
  249.     ),
  250.     'HIGHLIGHT_STRICT_BLOCK' => array(
  251.         => false,
  252.         => false,
  253.         => true
  254.         )
  255. );
  256.  
  257. ?>

Documentation generated on Mon, 05 Mar 2007 21:07:06 +0000 by phpDocumentor 1.3.1