| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 // no direct access 3 defined('_JEXEC') or die; 4 5 /************************************************************************************* 6 * css.php 7 * ------- 8 * Author: Nigel McNie (nigel@geshi.org) 9 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) 10 * Release Version: 1.0.8.10 11 * Date Started: 2004/06/18 12 * 13 * CSS language file for GeSHi. 14 * 15 * CHANGES 16 * ------- 17 * 2008/05/23 (1.0.7.22) 18 * - Added description of extra language features (SF#1970248) 19 * 2004/11/27 (1.0.3) 20 * - Added support for multiple object splitters 21 * 2004/10/27 (1.0.2) 22 * - Changed regexps to catch "-" symbols 23 * - Added support for URLs 24 * 2004/08/05 (1.0.1) 25 * - Added support for symbols 26 * 2004/07/14 (1.0.0) 27 * - First Release 28 * 29 * TODO (updated 2004/11/27) 30 * ------------------------- 31 * * Improve or drop regexps for class/id/psuedoclass highlighting 32 * * Re-look at keywords - possibly to make several CSS language 33 * files, all with different versions of CSS in them 34 * 35 ************************************************************************************* 36 * 37 * This file is part of GeSHi. 38 * 39 * GeSHi is free software; you can redistribute it and/or modify 40 * it under the terms of the GNU General Public License as published by 41 * the Free Software Foundation; either version 2 of the License, or 42 * (at your option) any later version. 43 * 44 * GeSHi is distributed in the hope that it will be useful, 45 * but WITHOUT ANY WARRANTY; without even the implied warranty of 46 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 47 * GNU General Public License for more details. 48 * 49 * You should have received a copy of the GNU General Public License 50 * along with GeSHi; if not, write to the Free Software 51 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 52 * 53 ************************************************************************************/ 54 55 $language_data = array ( 56 'LANG_NAME' => 'CSS', 57 'COMMENT_SINGLE' => array(1 => '@'), 58 'COMMENT_MULTI' => array('/*' => '*/'), 59 'COMMENT_REGEXP' => array( 60 2 => "/(?<=\\()\\s*(?:(?:[a-z0-9]+?:\\/\\/)?[a-z0-9_\\-\\.\\/:]+?)?[a-z]+?\\.[a-z]+?(\\?[^\)]+?)?\\s*?(?=\\))/i" 61 ), 62 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 63 'QUOTEMARKS' => array('"', "'"), 64 'ESCAPE_CHAR' => '', 65 'ESCAPE_REGEXP' => array( 66 //Simple Single Char Escapes 67 //1 => "#\\\\[nfrtv\$\"\n\\\\]#i", 68 //Hexadecimal Char Specs 69 2 => "#\\\\[\da-fA-F]{1,6}\s?#i", 70 //Unicode Char Specs 71 //3 => "#\\\\u[\da-fA-F]{1,8}#i", 72 ), 73 'KEYWORDS' => array( 74 1 => array( 75 'aqua', 'azimuth', 'background-attachment', 'background-color', 76 'background-image', 'background-position', 'background-repeat', 77 'background', 'black', 'blue', 'border-bottom-color', 78 'border-bottom-style', 'border-bottom-width', 'border-left-color', 79 'border-left-style', 'border-left-width', 'border-right', 80 'border-right-color', 'border-right-style', 'border-right-width', 81 'border-top-color', 'border-top-style', 82 'border-top-width','border-bottom', 'border-collapse', 83 'border-left', 'border-width', 'border-color', 'border-spacing', 84 'border-style', 'border-top', 'border', 'caption-side', 'clear', 85 'clip', 'color', 'content', 'counter-increment', 'counter-reset', 86 'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display', 87 'elevation', 'empty-cells', 'float', 'font-family', 'font-size', 88 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 89 'font-weight', 'font', 'line-height', 'letter-spacing', 90 'list-style', 'list-style-image', 'list-style-position', 91 'list-style-type', 'margin-bottom', 'margin-left', 'margin-right', 92 'margin-top', 'margin', 'marker-offset', 'marks', 'max-height', 93 'max-width', 'min-height', 'min-width', 'orphans', 'outline', 94 'outline-color', 'outline-style', 'outline-width', 'overflow', 95 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 96 'padding', 'page', 'page-break-after', 'page-break-before', 97 'page-break-inside', 'pause-after', 'pause-before', 'pause', 98 'pitch', 'pitch-range', 'play-during', 'position', 'quotes', 99 'richness', 'right', 'size', 'speak-header', 'speak-numeral', 100 'speak-punctuation', 'speak', 'speech-rate', 'stress', 101 'table-layout', 'text-align', 'text-decoration', 'text-indent', 102 'text-shadow', 'text-transform', 'top', 'unicode-bidi', 103 'vertical-align', 'visibility', 'voice-family', 'volume', 104 'white-space', 'widows', 'width', 'word-spacing', 'z-index', 105 'bottom', 'left', 'height' 106 ), 107 2 => array( 108 'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 109 'avoid', 'baseline', 'behind', 'below', 'bidi-override', 'blink', 110 'block', 'bold', 'bolder', 'both', 'capitalize', 'center-left', 111 'center-right', 'center', 'circle', 'cjk-ideographic', 112 'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 113 'crosshair', 'cross', 'cursive', 'dashed', 'decimal-leading-zero', 114 'decimal', 'default', 'digits', 'disc', 'dotted', 'double', 115 'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 116 'expanded', 'fantasy', 'far-left', 'far-right', 'faster', 'fast', 117 'fixed', 'fuchsia', 'georgian', 'gray', 'green', 'groove', 118 'hebrew', 'help', 'hidden', 'hide', 'higher', 'high', 119 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 120 'inline', 'inset', 'inside', 'invert', 'italic', 'justify', 121 'katakana-iroha', 'katakana', 'landscape', 'larger', 'large', 122 'left-side', 'leftwards', 'level', 'lighter', 'lime', 123 'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', 124 'lower-roman', 'lowercase', 'ltr', 'lower', 'low', 'maroon', 125 'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize', 126 'narrower', 'navy', 'ne-resize', 'no-close-quote', 127 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 128 'nw-resize', 'oblique', 'olive', 'once', 'open-quote', 'outset', 129 'outside', 'overline', 'pointer', 'portrait', 'purple', 'px', 130 'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 131 'ridge', 'right-side', 'rightwards', 's-resize', 'sans-serif', 132 'scroll', 'se-resize', 'semi-condensed', 'semi-expanded', 133 'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower', 134 'small-caps', 'small-caption', 'smaller', 'soft', 'solid', 135 'spell-out', 'square', 'static', 'status-bar', 'super', 136 'sw-resize', 'table-caption', 'table-cell', 'table-column', 137 'table-column-group', 'table-footer-group', 'table-header-group', 138 'table-row', 'table-row-group', 'teal', 'text', 'text-bottom', 139 'text-top', 'thick', 'thin', 'transparent', 'ultra-condensed', 140 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 141 'upper-roman', 'uppercase', 'url', 'visible', 'w-resize', 'wait', 142 'white', 'wider', 'x-fast', 'x-high', 'x-large', 'x-loud', 143 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', 'yellow', 144 'yes' 145 ) 146 ), 147 'SYMBOLS' => array( 148 '(', ')', '{', '}', ':', ';', 149 '>', '+', '*', ',', '^', '=' 150 ), 151 'CASE_SENSITIVE' => array( 152 GESHI_COMMENTS => false, 153 1 => true, 154 2 => true 155 ), 156 'STYLES' => array( 157 'KEYWORDS' => array( 158 1 => 'color: #000000; font-weight: bold;', 159 2 => 'color: #993333;' 160 ), 161 'COMMENTS' => array( 162 1 => 'color: #a1a100;', 163 2 => 'color: #ff0000; font-style: italic;', 164 'MULTI' => 'color: #808080; font-style: italic;' 165 ), 166 'ESCAPE_CHAR' => array( 167 0 => 'color: #000099; font-weight: bold;', 168 //1 => 'color: #000099; font-weight: bold;', 169 2 => 'color: #000099; font-weight: bold;' 170 //3 => 'color: #000099; font-weight: bold;' 171 ), 172 'BRACKETS' => array( 173 0 => 'color: #00AA00;' 174 ), 175 'STRINGS' => array( 176 0 => 'color: #ff0000;' 177 ), 178 'NUMBERS' => array( 179 0 => 'color: #cc66cc;' 180 ), 181 'METHODS' => array( 182 ), 183 'SYMBOLS' => array( 184 0 => 'color: #00AA00;' 185 ), 186 'SCRIPT' => array( 187 ), 188 'REGEXPS' => array( 189 0 => 'color: #cc00cc;', 190 1 => 'color: #6666ff;', 191 2 => 'color: #3333ff;', 192 3 => 'color: #933;' 193 ) 194 ), 195 'URLS' => array( 196 1 => '', 197 2 => '' 198 ), 199 'OOLANG' => false, 200 'OBJECT_SPLITTERS' => array( 201 ), 202 'REGEXPS' => array( 203 //DOM Node ID 204 0 => '\#[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*', 205 //CSS classname 206 1 => '\.(?!\d)[a-zA-Z0-9\-_]+(?:\\\\:[a-zA-Z0-9\-_]+)*\b(?=[\{\.#\s,:].|<\|)', 207 //CSS Pseudo classes 208 //note: & is needed for > (i.e. > ) 209 2 => '(?<!\\\\):(?!\d)[a-zA-Z0-9\-]+\b(?:\s*(?=[\{\.#a-zA-Z,:+*&](.|\n)|<\|))', 210 //Measurements 211 3 => '[+\-]?(\d+|(\d*\.\d+))(em|ex|pt|px|cm|in|%)', 212 ), 213 'STRICT_MODE_APPLIES' => GESHI_NEVER, 214 'SCRIPT_DELIMITERS' => array( 215 ), 216 'HIGHLIGHT_STRICT_BLOCK' => array( 217 ), 218 'TAB_WIDTH' => 4, 219 'PARSER_CONTROL' => array( 220 'KEYWORDS' => array( 221 'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])' 222 ) 223 ) 224 ); 225 226 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |