Source code for file /geshi/geshi/xml.php
Documentation is available at xml.php
/***********************************************************************************
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
* Release Version: 1.0.7.8
* CVS Revision Version: $Revision: 1.13 $
* Date Started: 2004/09/01
* Last Modified: $Date: 2006/03/23 07:31:32 $
* XML language file for GeSHi. Based on the idea/file by Christian Weiske
* - Removed escape character for strings
* - Added support for multiple object splitters
* TODO (updated 2004/11/27)
* -------------------------
* * Check regexps work and correctly highlight XML stuff and nothing else
************************************************************************************
* This file is part of GeSHi.
* GeSHi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* GeSHi is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with GeSHi; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
************************************************************************************/
'COMMENT_SINGLE' =>
array(),
'COMMENT_MULTI' =>
array('<!--' =>
'-->'),
'QUOTEMARKS' =>
array("'", '"'),
'CASE_SENSITIVE' =>
array(
'MULTI' =>
'color: #808080; font-style: italic;'
0 =>
'color: #000099; font-weight: bold;'
1 =>
'font-weight: bold; color: black;',
2 =>
'font-weight: bold; color: black;',
'OBJECT_SPLITTERS' =>
array(
GESHI_SEARCH =>
'(((xml:)?[a-z\-]+))(=)',
GESHI_SEARCH =>
'(<[/?|(\?xml)]?[a-z0-9_]*(\??>)?)',
GESHI_SEARCH =>
'(([/|\?])?>)',
'STRICT_MODE_APPLIES' =>
GESHI_ALWAYS,
'SCRIPT_DELIMITERS' =>
array(
'HIGHLIGHT_STRICT_BLOCK' =>
array(