Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Unknown

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /geshi/geshi/css.php

Documentation is available at css.php

  1. <?php
  2. /***********************************************************************************
  3.  * css.php
  4.  * -------
  5.  * Author: Nigel McNie ([email protected])
  6.  * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/)
  7.  * Release Version: 1.0.7.8
  8.  * CVS Revision Version: $Revision: 1.10 $
  9.  * Date Started: 2004/06/18
  10.  * Last Modified: $Date: 2006/02/25 00:46:33 $
  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.  
  54. $language_data = array (
  55.     'LANG_NAME' => 'CSS',
  56.     'COMMENT_SINGLE' => array(1 => '@'),
  57.     'COMMENT_MULTI' => array('/*' => '*/'),
  58.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  59.     'QUOTEMARKS' => array('"', "'"),
  60.     'ESCAPE_CHAR' => '\\',
  61.     'KEYWORDS' => array(
  62.         1 => array(
  63.             'aqua', 'azimuth', 'background-attachment', 'background-color',
  64.             'background-image', 'background-position', 'background-repeat',
  65.             'background', 'black', 'blue', 'border-bottom-color', 'border-bottom-style',
  66.             'border-bottom-width', 'border-left-color', 'border-left-style',
  67.             'border-left-width', 'border-right', 'border-right-color',
  68.             'border-right-style', 'border-right-width', 'border-top-color',
  69.             'border-top-style', 'border-top-width','border-bottom', 'border-collapse',
  70.             'border-left', 'border-width', 'border-color', 'border-spacing',
  71.             'border-style', 'border-top', 'border',  'caption-side',
  72.             'clear', 'clip', 'color', 'content', 'counter-increment', 'counter-reset',
  73.             'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',
  74.             'elevation', 'empty-cells', 'float', 'font-family', 'font-size',
  75.             'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',
  76.             'font-weight', 'font', 'height', 'letter-spacing', 'line-height',
  77.             'list-style', 'list-style-image', 'list-style-position', 'list-style-type',
  78.             'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'margin',
  79.             'marker-offset', 'marks', 'max-height', 'max-width', 'min-height',
  80.             'min-width', 'orphans', 'outline', 'outline-color', 'outline-style',
  81.             'outline-width', 'overflow', 'padding-bottom', 'padding-left',
  82.             'padding-right', 'padding-top', 'padding', 'page', 'page-break-after',
  83.             'page-break-before', 'page-break-inside', 'pause-after', 'pause-before',
  84.             'pause', 'pitch', 'pitch-range',  'play-during', 'position', 'quotes',
  85.             'richness', 'right', 'size', 'speak-header', 'speak-numeral', 'speak-punctuation',
  86.             'speak', 'speech-rate', 'stress', 'table-layout', 'text-align', 'text-decoration',
  87.             'text-indent', 'text-shadow', 'text-transform', 'top', 'unicode-bidi',
  88.             'vertical-align', 'visibility', 'voice-family', 'volume', 'white-space', 'widows',
  89.             'width', 'word-spacing', 'z-index', 'bottom', 'left'
  90.             ),
  91.         2 => array(
  92.             'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 'avoid',
  93.             'baseline', 'behind', 'below', 'bidi-override', 'blink', 'block', 'bold', 'bolder', 'both',
  94.             'capitalize', 'center-left', 'center-right', 'center', 'circle', 'cjk-ideographic',
  95.             'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 'crosshair', 'cross', 'cursive',
  96.             'dashed', 'decimal-leading-zero', 'decimal', 'default', 'digits', 'disc', 'dotted', 'double',
  97.             'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 'expanded',
  98.             'fantasy', 'far-left', 'far-right', 'faster', 'fast', 'fixed', 'fuchsia',
  99.             'georgian', 'gray', 'green', 'groove', 'hebrew', 'help', 'hidden', 'hide', 'higher',
  100.             'high', 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 'inline',
  101.             'inset', 'inside', 'invert', 'italic', 'justify', 'katakana-iroha', 'katakana',
  102.             'landscape', 'larger', 'large', 'left-side', 'leftwards', 'level', 'lighter', 'lime', 'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', 'lower-roman', 'lowercase', 'ltr', 'lower', 'low',
  103.             'maroon', 'medium', 'message-box', 'middle', 'mix', 'monospace',
  104.             'n-resize', 'narrower', 'navy', 'ne-resize', 'no-close-quote', 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 'nw-resize',
  105.             'oblique', 'olive', 'once', 'open-quote', 'outset', 'outside', 'overline',
  106.             'pointer', 'portrait', 'purple', 'px',
  107.             'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 'ridge', 'right-side', 'rightwards',
  108.             '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',
  109.             'static', 'status-bar', 'super', 'sw-resize',
  110.             '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',
  111.             'ultra-condensed', 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 'upper-roman', 'uppercase', 'url',
  112.             'visible',
  113.             'w-resize', 'wait', 'white', 'wider',
  114.             'x-fast', 'x-high', 'x-large', 'x-loud', 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small',
  115.             'yellow', 'yes'
  116.             )
  117.         ),
  118.     'SYMBOLS' => array(
  119.         '(', ')', '{', '}', ':', ';'
  120.         ),
  121.     'CASE_SENSITIVE' => array(
  122.         GESHI_COMMENTS => false,
  123.         1 => true,
  124.         2 => true
  125.         ),
  126.     'STYLES' => array(
  127.         'KEYWORDS' => array(
  128.             1 => 'color: #000000; font-weight: bold;',
  129.             2 => 'color: #993333;'
  130.             ),
  131.         'COMMENTS' => array(
  132.             1 => 'color: #a1a100;',
  133.             'MULTI' => 'color: #808080; font-style: italic;'
  134.             ),
  135.         'ESCAPE_CHAR' => array(
  136.             0 => 'color: #000099; font-weight: bold;'
  137.             ),
  138.         'BRACKETS' => array(
  139.             0 => 'color: #66cc66;'
  140.             ),
  141.         'STRINGS' => array(
  142.             0 => 'color: #ff0000;'
  143.             ),
  144.         'NUMBERS' => array(
  145.             0 => 'color: #cc66cc;'
  146.             ),
  147.         'METHODS' => array(
  148.             ),
  149.         'SYMBOLS' => array(
  150.             0 => 'color: #66cc66;'
  151.             ),
  152.         'SCRIPT' => array(
  153.             ),
  154.         'REGEXPS' => array(
  155.             0 => 'color: #cc00cc;',
  156.             1 => 'color: #6666ff;',
  157.             2 => 'color: #3333ff;',
  158.             )
  159.         ),
  160.     'URLS' => array(
  161.         1 => '',
  162.         2 => ''
  163.         ),
  164.     'OOLANG' => false,
  165.     'OBJECT_SPLITTERS' => array(
  166.         ),
  167.     'REGEXPS' => array(
  168.         0 => '\#[a-zA-Z0-9\-]+\s+\{',
  169.         1 => '\.[a-zA-Z0-9\-]+\s',
  170.         2 => ':[a-zA-Z0-9\-]+\s'
  171.         ),
  172.     'STRICT_MODE_APPLIES' => GESHI_NEVER,
  173.     'SCRIPT_DELIMITERS' => array(
  174.         ),
  175.     'HIGHLIGHT_STRICT_BLOCK' => array(
  176.         )
  177. );
  178.  
  179. ?>

Documentation generated on Mon, 05 Mar 2007 20:55:56 +0000 by phpDocumentor 1.3.1