Lines:
1 to 100 of 945
<?php /************************************************************************************* * css.php * ------- * Author: Nigel McNie (nigel@geshi.org), Zéfling (zefling@ikilote.net) * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) * Release Version: 1.0.9.0 * Date Started: 2004/06/18 * * CSS language file for GeSHi. * * CHANGES * ------- * 2014/07/14 (1.0.8.13) * - update for current CSS3 (properties, value, expression, unites & color) * - remove pseudo class regex * - add rules regex * 2008/05/23 (1.0.7.22) * - Added description of extra language features (SF#1970248) * 2004/11/27 (1.0.3) * - Added support for multiple object splitters * 2004/10/27 (1.0.2) * - Changed regexps to catch "-" symbols * - Added support for URLs * 2004/08/05 (1.0.1) * - Added support for symbols * 2004/07/14 (1.0.0) * - First Release * * TODO (updated 2004/11/27) * ------------------------- * * Improve or drop regexps for class/id highlighting * * Re-look at keywords - possibly to make several CSS language * files, all with different versions of CSS in them * ************************************************************************************* * * 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 * ************************************************************************************/ $language_data = array( 'LANG_NAME' => 'CSS', 'COMMENT_SINGLE' => array(), 'COMMENT_MULTI' => array('/*' => '*/'), 'COMMENT_REGEXP' => array( 2 => "/(?<=\\()\\s*(?:(?:[a-z0-9]+?:\\/\\/)?[a-z0-9_\\-\\.\\/:]+?)?[a-z]+?\\.[a-z]+?(\\?[^\)]+?)?\\s*?(?=\\))/i" ), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array('"', "'"), 'ESCAPE_CHAR' => '', 'ESCAPE_REGEXP' => array( //Simple Single Char Escapes //1 => "#\\\\[nfrtv\$\"\n\\\\]#i", //Hexadecimal Char Specs 2 => "#\\\\[\da-fA-F]{1,6}\s?#i", //Unicode Char Specs //3 => "#\\\\u[\da-fA-F]{1,8}#i", ), 'KEYWORDS' => array( // properties 1 => array( 'align-content', 'align-items', 'align-Telf', 'all', 'animation', 'animation-delay', 'animation-direction', 'animation-duration', 'animation-fill-mode', 'animation-iteration-count', 'animation-name', 'animation-play-state', 'animation-timing-function', 'backface-visibility', 'background', 'background-attachment', 'background-blend-mode', 'background-clip', 'background-color', 'background-image', 'background-origin', 'background-position', 'background-repeat', 'background-size', 'border',View on GitHub View on Trac