00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
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 ?>