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/javascript.php

Documentation is available at javascript.php

  1. <?php
  2. /***********************************************************************************
  3.  * javascript.php
  4.  * --------------
  5.  * Author: Ben Keen ([email protected])
  6.  * Copyright: (c) 2004 Ben Keen ([email protected]), Nigel McNie (http://qbnz.com/highlighter)
  7.  * Release Version: 1.0.7.8
  8.  * CVS Revision Version: $Revision: 1.8 $
  9.  * Date Started: 2004/06/20
  10.  * Last Modified: $Date: 2006/02/25 00:46:33 $
  11.  *
  12.  * JavaScript language file for GeSHi.
  13.  *
  14.  * CHANGES
  15.  * -------
  16.  * 2004/11/27 (1.0.1)
  17.  *  -  Added support for multiple object splitters
  18.  * 2004/10/27 (1.0.0)
  19.  *  -  First Release
  20.  *
  21.  * TODO (updated 2004/11/27)
  22.  * -------------------------
  23.  *
  24.  ************************************************************************************
  25.  *
  26.  *     This file is part of GeSHi.
  27.  *
  28.  *   GeSHi is free software; you can redistribute it and/or modify
  29.  *   it under the terms of the GNU General Public License as published by
  30.  *   the Free Software Foundation; either version 2 of the License, or
  31.  *   (at your option) any later version.
  32.  *
  33.  *   GeSHi is distributed in the hope that it will be useful,
  34.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  35.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  36.  *   GNU General Public License for more details.
  37.  *
  38.  *   You should have received a copy of the GNU General Public License
  39.  *   along with GeSHi; if not, write to the Free Software
  40.  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  41.  *
  42.  ************************************************************************************/
  43.  
  44.  
  45. $language_data array (
  46.   'LANG_NAME' => 'JAVASCRIPT',
  47.   'COMMENT_SINGLE' => array(=> '//'),
  48.   'COMMENT_MULTI' => array('/*' => '*/'),
  49.   'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50.   'QUOTEMARKS' => array("'"'"'),
  51.   'ESCAPE_CHAR' => '\\',
  52.   'KEYWORDS' => array(
  53.     => array(
  54.       'as''break''case''catch''continue''decodeURI''delete''do',
  55.       'else''encodeURI''eval''finally''for''if''in''is''item',
  56.       'instanceof''return''switch''this''throw''try''typeof''void',
  57.       'while''write''with'
  58.       ),
  59.     => array(
  60.       'class''const''default''debugger''export''extends''false',
  61.       'function''import''namespace''new''null''package''private',
  62.       'protected''public''super''true''use''var'
  63.       ),
  64.     => array(
  65.  
  66.       // common functions for Window object
  67.             'alert''back''blur''close''confirm''focus''forward''home',
  68.       'name''navigate''onblur''onerror''onfocus''onload''onmove',
  69.       'onresize''onunload''open''print''prompt''scroll''status',
  70.       'stop',
  71.       )
  72.     ),
  73.   'SYMBOLS' => array(
  74.     '('')''['']''{''}''!''@''%''&''*''|''/''<''>'
  75.     ),
  76.   'CASE_SENSITIVE' => array(
  77.     GESHI_COMMENTS => false,
  78.     => false,
  79.     => false,
  80.     => false
  81.     ),
  82.   'STYLES' => array(
  83.     'KEYWORDS' => array(
  84.       => 'color: #000066; font-weight: bold;',
  85.       => 'color: #003366; font-weight: bold;',
  86.       => 'color: #000066;'
  87.       ),
  88.     'COMMENTS' => array(
  89.       => 'color: #009900; font-style: italic;',
  90.       'MULTI' => 'color: #009900; font-style: italic;'
  91.       ),
  92.     'ESCAPE_CHAR' => array(
  93.       => 'color: #000099; font-weight: bold;'
  94.       ),
  95.     'BRACKETS' => array(
  96.       => 'color: #66cc66;'
  97.       ),
  98.     'STRINGS' => array(
  99.       => 'color: #3366CC;'
  100.       ),
  101.     'NUMBERS' => array(
  102.       => 'color: #CC0000;'
  103.       ),
  104.     'METHODS' => array(
  105.       => 'color: #006600;'
  106.       ),
  107.     'SYMBOLS' => array(
  108.       => 'color: #66cc66;'
  109.       ),
  110.     'REGEXPS' => array(
  111.       => 'color: #0066FF;'
  112.       ),
  113.     'SCRIPT' => array(
  114.       => '',
  115.       => '',
  116.       => '',
  117.       => ''
  118.       )
  119.     ),
  120.   'URLS' => array(
  121.         => '',
  122.         => '',
  123.         => ''
  124.       ),
  125.   'OOLANG' => true,
  126.   'OBJECT_SPLITTERS' => array(
  127.       => '.'
  128.     ),
  129.   'REGEXPS' => array(
  130.     => "/.*/([igm]*)?"         // matches js reg exps
  131.         ),
  132.   'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  133.   'SCRIPT_DELIMITERS' => array(
  134.     => array(
  135.       '<script type="text/javascript">' => '</script>'
  136.       ),
  137.     => array(
  138.       '<script language="javascript">' => '</script>'
  139.       )
  140.     ),
  141.   'HIGHLIGHT_STRICT_BLOCK' => array(
  142.     => true,
  143.     => true
  144.   )
  145. );
  146.  
  147. ?>

Documentation generated on Mon, 05 Mar 2007 21:08:56 +0000 by phpDocumentor 1.3.1