root/trunk/lib/geshi/css.php

Revision 2, 7.4 kB (checked in by fabien, 6 years ago)

initial import

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