[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/geshi/geshi/ -> html4strict.php (source)

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


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1