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/xml.php

Documentation is available at xml.php

  1. <?php
  2. /***********************************************************************************
  3.  * xml.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.13 $
  9.  * Date Started: 2004/09/01
  10.  * Last Modified: $Date: 2006/03/23 07:31:32 $
  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.  
  48. $language_data array (
  49.     'LANG_NAME' => 'XML',
  50.     'COMMENT_SINGLE' => array(),
  51.     'COMMENT_MULTI' => array('<!--' => '-->'),
  52.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  53.     'QUOTEMARKS' => array("'"'"'),
  54.     'ESCAPE_CHAR' => '',
  55.     'KEYWORDS' => array(
  56.         ),
  57.     'SYMBOLS' => array(
  58.         ),
  59.     'CASE_SENSITIVE' => array(
  60.         GESHI_COMMENTS => false,
  61.         ),
  62.     'STYLES' => array(
  63.         'KEYWORDS' => array(
  64.             ),
  65.         'COMMENTS' => array(
  66.             'MULTI' => 'color: #808080; font-style: italic;'
  67.             ),
  68.         'ESCAPE_CHAR' => array(
  69.             => 'color: #000099; font-weight: bold;'
  70.             ),
  71.         'BRACKETS' => array(
  72.             => 'color: #66cc66;'
  73.             ),
  74.         'STRINGS' => array(
  75.             => 'color: #ff0000;'
  76.             ),
  77.         'NUMBERS' => array(
  78.             => 'color: #cc66cc;'
  79.             ),
  80.         'METHODS' => array(
  81.             ),
  82.         'SYMBOLS' => array(
  83.             => 'color: #66cc66;'
  84.             ),
  85.         'SCRIPT' => array(
  86.             => 'color: #00bbdd;',
  87.             => 'color: #ddbb00;',
  88.             => 'color: #339933;',
  89.             => 'color: #009900;'
  90.             ),
  91.         'REGEXPS' => array(
  92.             => 'color: #000066;',
  93.             => 'font-weight: bold; color: black;',
  94.             => 'font-weight: bold; color: black;',
  95.             )
  96.         ),
  97.     'URLS' => array(
  98.         ),
  99.     'OOLANG' => false,
  100.     'OBJECT_SPLITTERS' => array(
  101.         ),
  102.     'REGEXPS' => array(
  103.         => array(
  104.             GESHI_SEARCH => '(((xml:)?[a-z\-]+))(=)',
  105.             GESHI_REPLACE => '\\1',
  106.             GESHI_MODIFIERS => 'i',
  107.             GESHI_BEFORE => '',
  108.             GESHI_AFTER => '\\4'
  109.             ),
  110.         => array(
  111.             GESHI_SEARCH => '(&lt;[/?|(\?xml)]?[a-z0-9_]*(\??&gt;)?)',
  112.             GESHI_REPLACE => '\\1',
  113.             GESHI_MODIFIERS => 'i',
  114.             GESHI_BEFORE => '',
  115.             GESHI_AFTER => ''
  116.             ),
  117.         => array(
  118.             GESHI_SEARCH => '(([/|\?])?&gt;)',
  119.             GESHI_REPLACE => '\\1',
  120.             GESHI_MODIFIERS => 'i',
  121.             GESHI_BEFORE => '',
  122.             GESHI_AFTER => ''
  123.             )
  124.         ),
  125.     'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
  126.     'SCRIPT_DELIMITERS' => array(
  127.         => array(
  128.             '<!DOCTYPE' => '>'
  129.             ),
  130.         => array(
  131.             '&' => ';'
  132.             ),
  133.         => array(
  134.             '<![CDATA[' => ']]>'
  135.             ),
  136.         => array(
  137.             '<' => '>'
  138.             )
  139.     ),
  140.     'HIGHLIGHT_STRICT_BLOCK' => array(
  141.         => false,
  142.         => false,
  143.         => false,
  144.         => true
  145.         )
  146. );
  147.  
  148. ?>

Documentation generated on Mon, 05 Mar 2007 21:31:42 +0000 by phpDocumentor 1.3.1