Codulle - L'explorateur de code sources
Informations fichier
Nom du fichier : xml.phpTaille du fichier : 3 Ko (145 lignes)
Language : PHP
span style="color: #808080; font-style: italic;">/************************************************************************************* * xml.php * ------- * Author: Nigel McNie (oracle.shinoda@gmail.com) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.7.5 * CVS Revision Version: $Revision: 1.7 $ * Date Started: 2004/09/01 * Last Modified: $Date: 2005/10/22 07:52:59 $ * * XML language file for GeSHi. Based on the idea/file by Christian Weiske * * CHANGES * ------- * 2004/11/27 (1.0.1) * - Added support for multiple object splitters * 2004/10/27 (1.0.0) * - First Release * * 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 * ************************************************************************************/'LANG_NAME' => 'XML', 'COMMENT_SINGLE''COMMENT_MULTI''<!--' => '-->'), 'CASE_KEYWORDS''QUOTEMARKS'"'", '"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS''SYMBOLS''CASE_SENSITIVE''STYLES''KEYWORDS''COMMENTS''MULTI' => 'color: #808080; font-style: italic;' ), 'ESCAPE_CHAR''color: #000099; font-weight: bold;' ), 'BRACKETS''color: #66cc66;' ), 'STRINGS''color: #ff0000;' ), 'NUMBERS''color: #cc66cc;' ), 'METHODS''SYMBOLS''color: #66cc66;' ), 'SCRIPT''color: #00bbdd;', 1 => 'color: #ddbb00;', 2 => 'color: #339933;', 3 => 'color: #009900;' ), 'REGEXPS''color: #000066;', 1 => 'font-weight: bold; color: black;', 2 => 'font-weight: bold; color: black;', ) ), 'URLS''OOLANG''OBJECT_SPLITTERS''REGEXPS''(((xml:)?[a-z\-]+))(=)''\\1''i''''\\4''(</?[a-z0-9_]*(>)?)''\\1''i''''''((/)?>)''\\1''i''''' ) ), 'STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''<!DOCTYPE' => '>''&' => ';''<![CDATA[' => ']]>''<' => '>' ) ), 'HIGHLIGHT_STRICT_BLOCK'