[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/inc/geshi/ -> xml.php (source)

   1  <?php
   2  /*************************************************************************************
   3   * xml.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.18.2.6 $
   9   * Date Started: 2004/09/01
  10   * Last Modified: $Date: 2006/10/11 12:24:50 $
  11   *
  12   * XML language file for GeSHi. Based on the idea/file by Christian Weiske
  13   *
  14   * CHANGES
  15   * -------
  16   * 2005/12/28 (1.0.2)
  17   *   -  Removed escape character for strings
  18   * 2004/11/27 (1.0.1)
  19   *   -  Added support for multiple object splitters
  20   * 2004/10/27 (1.0.0)
  21   *   -  First Release
  22   *
  23   * TODO (updated 2004/11/27)
  24   * -------------------------
  25   * * Check regexps work and correctly highlight XML stuff and nothing else
  26   *
  27   *************************************************************************************
  28   *
  29   *     This file is part of GeSHi.
  30   *
  31   *   GeSHi is free software; you can redistribute it and/or modify
  32   *   it under the terms of the GNU General Public License as published by
  33   *   the Free Software Foundation; either version 2 of the License, or
  34   *   (at your option) any later version.
  35   *
  36   *   GeSHi is distributed in the hope that it will be useful,
  37   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  38   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  39   *   GNU General Public License for more details.
  40   *
  41   *   You should have received a copy of the GNU General Public License
  42   *   along with GeSHi; if not, write to the Free Software
  43   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  44   *
  45   ************************************************************************************/
  46  
  47  $language_data = array (
  48      'LANG_NAME' => 'XML',
  49      'COMMENT_SINGLE' => array(),
  50      'COMMENT_MULTI' => array('<!--' => '-->'),
  51      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  52      'QUOTEMARKS' => array("'", '"'),
  53      'ESCAPE_CHAR' => '',
  54      'KEYWORDS' => array(
  55          ),
  56      'SYMBOLS' => array(
  57          ),
  58      'CASE_SENSITIVE' => array(
  59          GESHI_COMMENTS => false,
  60          ),
  61      'STYLES' => array(
  62          'KEYWORDS' => array(
  63              ),
  64          'COMMENTS' => array(
  65              'MULTI' => 'color: #808080; font-style: italic;'
  66              ),
  67          'ESCAPE_CHAR' => array(
  68              0 => 'color: #000099; font-weight: bold;'
  69              ),
  70          'BRACKETS' => array(
  71              0 => 'color: #66cc66;'
  72              ),
  73          'STRINGS' => array(
  74              0 => 'color: #ff0000;'
  75              ),
  76          'NUMBERS' => array(
  77              0 => 'color: #cc66cc;'
  78              ),
  79          'METHODS' => array(
  80              ),
  81          'SYMBOLS' => array(
  82              0 => 'color: #66cc66;'
  83              ),
  84          'SCRIPT' => array(
  85              0 => 'color: #00bbdd;',
  86              1 => 'color: #ddbb00;',
  87              2 => 'color: #339933;',
  88              3 => 'color: #009900;'
  89              ),
  90          'REGEXPS' => array(
  91              0 => 'color: #000066;',
  92              1 => 'font-weight: bold; color: black;',
  93              2 => 'font-weight: bold; color: black;',
  94              )
  95          ),
  96      'URLS' => array(
  97          ),
  98      'OOLANG' => false,
  99      'OBJECT_SPLITTERS' => array(
 100          ),
 101      'REGEXPS' => array(
 102          0 => array(
 103              GESHI_SEARCH => '([a-z\-:]+)(=)',
 104              GESHI_REPLACE => '\\1',
 105              GESHI_MODIFIERS => 'i',
 106              GESHI_BEFORE => '',
 107              GESHI_AFTER => '\\2'
 108              ),
 109          1 => array(
 110              GESHI_SEARCH => '(&lt;[/?|(\?xml)]?[a-z0-9_\-:]*(\??&gt;)?)',
 111              GESHI_REPLACE => '\\1',
 112              GESHI_MODIFIERS => 'i',
 113              GESHI_BEFORE => '',
 114              GESHI_AFTER => ''
 115              ),
 116          2 => array(
 117              GESHI_SEARCH => '(([/|\?])?&gt;)',
 118              GESHI_REPLACE => '\\1',
 119              GESHI_MODIFIERS => 'i',
 120              GESHI_BEFORE => '',
 121              GESHI_AFTER => ''
 122              )
 123          ),
 124      'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
 125      'SCRIPT_DELIMITERS' => array(
 126          0 => array(
 127              '<!DOCTYPE' => '>'
 128              ),
 129          1 => array(
 130              '&' => ';'
 131              ),
 132          2 => array(
 133              '<![CDATA[' => ']]>'
 134              ),
 135          3 => array(
 136              '<' => '>'
 137              )
 138      ),
 139      'HIGHLIGHT_STRICT_BLOCK' => array(
 140          0 => false,
 141          1 => false,
 142          2 => false,
 143          3 => true
 144          )
 145  );
 146  
 147  ?>


Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7