1 <?php 2 /************************************************************************************* 3 * xml.php 4 * ------- 5 * Author: Nigel McNie (nigel (at) geshi.org) 6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) 7 * Release Version: 1.0.8.3 8 * Date Started: 2004/09/01 9 * 10 * XML language file for GeSHi. Based on the idea/file by Christian Weiske 11 * 12 * CHANGES 13 * ------- 14 * 2008/05/23 (1.0.7.22) 15 * - Added description of extra language features (SF#1970248) 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 ), 66 'ESCAPE_CHAR' => array( 67 0 => 'color: #000099; font-weight: bold;' 68 ), 69 'BRACKETS' => array( 70 0 => 'color: #66cc66;' 71 ), 72 'STRINGS' => array( 73 0 => 'color: #ff0000;' 74 ), 75 'NUMBERS' => array( 76 0 => 'color: #cc66cc;' 77 ), 78 'METHODS' => array( 79 ), 80 'SYMBOLS' => array( 81 0 => 'color: #66cc66;' 82 ), 83 'SCRIPT' => array( 84 -1 => 'color: #808080; font-style: italic;', // comments 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 => 'color: #000000; font-weight: bold;', 93 2 => 'color: #000000; font-weight: bold;' 94 ) 95 ), 96 'URLS' => array( 97 ), 98 'OOLANG' => false, 99 'OBJECT_SPLITTERS' => array( 100 ), 101 'REGEXPS' => array( 102 0 => array(//attribute names 103 GESHI_SEARCH => '([a-z_:][\w\-\.:]*)(=)', 104 GESHI_REPLACE => '\\1', 105 GESHI_MODIFIERS => 'i', 106 GESHI_BEFORE => '', 107 GESHI_AFTER => '\\2' 108 ), 109 1 => array(//Initial header line 110 GESHI_SEARCH => '(<[\/?|(\?xml)]?[a-z_:][\w\-\.:]*(\??>)?)', 111 GESHI_REPLACE => '\\1', 112 GESHI_MODIFIERS => 'i', 113 GESHI_BEFORE => '', 114 GESHI_AFTER => '' 115 ), 116 2 => array(//Tag end markers 117 GESHI_SEARCH => '(([\/|\?])?>)', 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 -1 => array( 127 '<!--' => '-->' 128 ), 129 0 => array( 130 '<!DOCTYPE' => '>' 131 ), 132 1 => array( 133 '&' => ';' 134 ), 135 2 => array( 136 '<![CDATA[' => ']]>' 137 ), 138 3 => array( 139 '<' => '>' 140 ) 141 ), 142 'HIGHLIGHT_STRICT_BLOCK' => array( 143 -1 => false, 144 0 => false, 145 1 => false, 146 2 => false, 147 3 => true 148 ), 149 'TAB_WIDTH' => 2, 150 'PARSER_CONTROL' => array( 151 'ENABLE_FLAGS' => array( 152 'NUMBERS' => GESHI_NEVER 153 ) 154 ) 155 ); 156 157 ?> 158