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