css.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * css.php
00004  * -------
00005  * Author: Nigel McNie (nigel@geshi.org)
00006  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/06/18
00009  *
00010  * CSS language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2004/11/27 (1.0.3)
00015  *  -  Added support for multiple object splitters
00016  * 2004/10/27 (1.0.2)
00017  *   -  Changed regexps to catch "-" symbols
00018  *   -  Added support for URLs
00019  * 2004/08/05 (1.0.1)
00020  *   -  Added support for symbols
00021  * 2004/07/14 (1.0.0)
00022  *   -  First Release
00023  *
00024  * TODO (updated 2004/11/27)
00025  * -------------------------
00026  * * Improve or drop regexps for class/id/psuedoclass highlighting
00027  * * Re-look at keywords - possibly to make several CSS language
00028  *   files, all with different versions of CSS in them
00029  *
00030  *************************************************************************************
00031  *
00032  *     This file is part of GeSHi.
00033  *
00034  *   GeSHi is free software; you can redistribute it and/or modify
00035  *   it under the terms of the GNU General Public License as published by
00036  *   the Free Software Foundation; either version 2 of the License, or
00037  *   (at your option) any later version.
00038  *
00039  *   GeSHi is distributed in the hope that it will be useful,
00040  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00041  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00042  *   GNU General Public License for more details.
00043  *
00044  *   You should have received a copy of the GNU General Public License
00045  *   along with GeSHi; if not, write to the Free Software
00046  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00047  *
00048  ************************************************************************************/
00049 
00050 
00051 $language_data = array (
00052      'LANG_NAME' => 'CSS',
00053      'COMMENT_SINGLE' => array(1 => '@'),
00054      'COMMENT_MULTI' => array('/*' => '*/'),
00055      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00056      'QUOTEMARKS' => array('"', "'"),
00057      'ESCAPE_CHAR' => '\\',
00058      'KEYWORDS' => array(
00059           1 => array(
00060             'aqua', 'azimuth', 'background-attachment', 'background-color',
00061             'background-image', 'background-position', 'background-repeat',
00062             'background', 'black', 'blue', 'border-bottom-color',
00063             'border-bottom-style', 'border-bottom-width', 'border-left-color',
00064             'border-left-style', 'border-left-width', 'border-right',
00065             'border-right-color', 'border-right-style', 'border-right-width',
00066             'border-top-color', 'border-top-style',
00067             'border-top-width','border-bottom', 'border-collapse',
00068             'border-left', 'border-width', 'border-color', 'border-spacing',
00069             'border-style', 'border-top', 'border', 'caption-side', 'clear',
00070             'clip', 'color', 'content', 'counter-increment', 'counter-reset',
00071             'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',
00072             'elevation', 'empty-cells', 'float', 'font-family', 'font-size',
00073             'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',
00074             'font-weight', 'font', 'line-height', 'letter-spacing',
00075             'list-style', 'list-style-image', 'list-style-position',
00076             'list-style-type', 'margin-bottom', 'margin-left', 'margin-right',
00077             'margin-top', 'margin', 'marker-offset', 'marks', 'max-height',
00078             'max-width', 'min-height', 'min-width', 'orphans', 'outline',
00079             'outline-color', 'outline-style', 'outline-width', 'overflow',
00080             'padding-bottom', 'padding-left', 'padding-right', 'padding-top',
00081             'padding', 'page', 'page-break-after', 'page-break-before',
00082             'page-break-inside', 'pause-after', 'pause-before', 'pause',
00083             'pitch', 'pitch-range', 'play-during', 'position', 'quotes',
00084             'richness', 'right', 'size', 'speak-header', 'speak-numeral',
00085             'speak-punctuation', 'speak', 'speech-rate', 'stress',
00086             'table-layout', 'text-align', 'text-decoration', 'text-indent',
00087             'text-shadow', 'text-transform', 'top', 'unicode-bidi',
00088             'vertical-align', 'visibility', 'voice-family', 'volume',
00089             'white-space', 'widows', 'width', 'word-spacing', 'z-index',
00090             'bottom', 'left', 'height'
00091         ),
00092           2 => array(
00093              'above', 'absolute', 'always', 'armenian', 'aural', 'auto',
00094              'avoid', 'baseline', 'behind', 'below', 'bidi-override', 'blink',
00095              'block', 'bold', 'bolder', 'both', 'capitalize', 'center-left',
00096              'center-right', 'center', 'circle', 'cjk-ideographic',
00097              'close-quote', 'collapse', 'condensed', 'continuous', 'crop',
00098              'crosshair', 'cross', 'cursive', 'dashed', 'decimal-leading-zero',
00099              'decimal', 'default', 'digits', 'disc', 'dotted', 'double',
00100              'e-resize', 'embed', 'extra-condensed', 'extra-expanded',
00101              'expanded', 'fantasy', 'far-left', 'far-right', 'faster', 'fast',
00102              'fixed', 'fuchsia', 'georgian', 'gray', 'green', 'groove',
00103              'hebrew', 'help', 'hidden', 'hide', 'higher', 'high',
00104              'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table',
00105              'inline', 'inset', 'inside', 'invert', 'italic', 'justify',
00106              'katakana-iroha', 'katakana', 'landscape', 'larger', 'large',
00107              'left-side', 'leftwards', 'level', 'lighter', 'lime',
00108              'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek',
00109              'lower-roman', 'lowercase', 'ltr', 'lower', 'low', 'maroon',
00110              'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize',
00111              'narrower', 'navy', 'ne-resize', 'no-close-quote',
00112              'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap',
00113              'nw-resize', 'oblique', 'olive', 'once', 'open-quote', 'outset',
00114              'outside', 'overline', 'pointer', 'portrait', 'purple', 'px',
00115              'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb',
00116              'ridge', 'right-side', 'rightwards', 's-resize', 'sans-serif',
00117              'scroll', 'se-resize', 'semi-condensed', 'semi-expanded',
00118              'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower',
00119              'small-caps', 'small-caption', 'smaller', 'soft', 'solid',
00120              'spell-out', 'square', 'static', 'status-bar', 'super',
00121              'sw-resize', 'table-caption', 'table-cell', 'table-column',
00122              'table-column-group', 'table-footer-group', 'table-header-group',
00123              'table-row', 'table-row-group', 'teal', 'text', 'text-bottom',
00124              'text-top', 'thick', 'thin', 'transparent', 'ultra-condensed',
00125              'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin',
00126              'upper-roman', 'uppercase', 'url', 'visible', 'w-resize', 'wait',
00127              'white', 'wider', 'x-fast', 'x-high', 'x-large', 'x-loud',
00128              'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', 'yellow',
00129              'yes'
00130             )
00131         ),
00132      'SYMBOLS' => array(
00133           '(', ')', '{', '}', ':', ';'
00134           ),
00135      'CASE_SENSITIVE' => array(
00136           GESHI_COMMENTS => false,
00137           1 => true,
00138           2 => true
00139           ),
00140      'STYLES' => array(
00141           'KEYWORDS' => array(
00142                1 => 'color: #000000; font-weight: bold;',
00143                2 => 'color: #993333;'
00144                ),
00145           'COMMENTS' => array(
00146                1 => 'color: #a1a100;',
00147                'MULTI' => 'color: #808080; font-style: italic;'
00148                ),
00149           'ESCAPE_CHAR' => array(
00150                0 => 'color: #000099; font-weight: bold;'
00151                ),
00152           'BRACKETS' => array(
00153                0 => 'color: #66cc66;'
00154                ),
00155           'STRINGS' => array(
00156                0 => 'color: #ff0000;'
00157                ),
00158           'NUMBERS' => array(
00159                0 => 'color: #cc66cc;'
00160                ),
00161           'METHODS' => array(
00162                ),
00163           'SYMBOLS' => array(
00164                0 => 'color: #66cc66;'
00165                ),
00166           'SCRIPT' => array(
00167                ),
00168           'REGEXPS' => array(
00169                0 => 'color: #cc00cc;',
00170                1 => 'color: #6666ff;',
00171                2 => 'color: #3333ff;',
00172             3 => 'color: #933;',
00173             4 => 'color: #933;',
00174                )
00175           ),
00176      'URLS' => array(
00177           1 => '',
00178           2 => ''
00179           ),
00180      'OOLANG' => false,
00181      'OBJECT_SPLITTERS' => array(
00182           ),
00183      'REGEXPS' => array(
00184           0 => '\#[a-zA-Z0-9\-_]+',
00185           1 => '\.[a-zA-Z0-9\-_]+',
00186         2 => ':[a-zA-Z0-9\-]+',
00187         3 => '(\d+|(\d*\.\d+))(em|ex|pt|px|cm|in|%)',
00188         4 => array(
00189             GESHI_SEARCH    => '(url\()([^)]+)(\))',
00190             GESHI_REPLACE   => '\\2',
00191             GESHI_BEFORE    => '\\1',
00192             GESHI_AFTER     => '\\3',
00193             GESHI_MODIFIERS => 'si'
00194         )
00195           ),
00196      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00197      'SCRIPT_DELIMITERS' => array(
00198           ),
00199      'HIGHLIGHT_STRICT_BLOCK' => array(
00200         ),
00201     'TAB_WIDTH' => 4
00202 );
00203 
00204 if (isset($this) && is_a($this, 'GeSHi')) {
00205     $language_data['STYLES']['NUMBERS'][0] = $language_data['STYLES']['REGEXPS'][3];
00206 }
00207 
00208 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8