javascript.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * javascript.php
00004  * --------------
00005  * Author: Ben Keen (ben.keen@gmail.com)
00006  * Copyright: (c) 2004 Ben Keen (ben.keen@gmail.com), Nigel McNie (http://qbnz.com/highlighter)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/06/20
00009  *
00010  * JavaScript language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2004/11/27 (1.0.1)
00015  *  -  Added support for multiple object splitters
00016  * 2004/10/27 (1.0.0)
00017  *  -  First Release
00018  *
00019  * TODO (updated 2004/11/27)
00020  * -------------------------
00021  *
00022  *************************************************************************************
00023  *
00024  *     This file is part of GeSHi.
00025  *
00026  *   GeSHi is free software; you can redistribute it and/or modify
00027  *   it under the terms of the GNU General Public License as published by
00028  *   the Free Software Foundation; either version 2 of the License, or
00029  *   (at your option) any later version.
00030  *
00031  *   GeSHi is distributed in the hope that it will be useful,
00032  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00033  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00034  *   GNU General Public License for more details.
00035  *
00036  *   You should have received a copy of the GNU General Public License
00037  *   along with GeSHi; if not, write to the Free Software
00038  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00039  *
00040  ************************************************************************************/
00041 
00042 $language_data = array (
00043   'LANG_NAME' => 'Javascript',
00044   'COMMENT_SINGLE' => array(1 => '//'),
00045   'COMMENT_MULTI' => array('/*' => '*/'),
00046   'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00047   'QUOTEMARKS' => array("'", '"'),
00048   'ESCAPE_CHAR' => '\\',
00049   'KEYWORDS' => array(
00050     1 => array(
00051       'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do',
00052       'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item',
00053       'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void',
00054       'while', 'write', 'with'
00055       ),
00056     2 => array(
00057       'class', 'const', 'default', 'debugger', 'export', 'extends', 'false',
00058       'function', 'import', 'namespace', 'new', 'null', 'package', 'private',
00059       'protected', 'public', 'super', 'true', 'use', 'var'
00060       ),
00061     3 => array(
00062 
00063       // common functions for Window object
00064       'alert', 'back', 'blur', 'close', 'confirm', 'focus', 'forward', 'home',
00065       'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove',
00066       'onresize', 'onunload', 'open', 'print', 'prompt', 'scroll', 'status',
00067       'stop',
00068       )
00069     ),
00070   'SYMBOLS' => array(
00071     '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
00072     ),
00073   'CASE_SENSITIVE' => array(
00074     GESHI_COMMENTS => false,
00075     1 => false,
00076     2 => false,
00077     3 => false
00078     ),
00079   'STYLES' => array(
00080     'KEYWORDS' => array(
00081       1 => 'color: #000066; font-weight: bold;',
00082       2 => 'color: #003366; font-weight: bold;',
00083       3 => 'color: #000066;'
00084       ),
00085     'COMMENTS' => array(
00086       1 => 'color: #009900; font-style: italic;',
00087       'MULTI' => 'color: #009900; font-style: italic;'
00088       ),
00089     'ESCAPE_CHAR' => array(
00090       0 => 'color: #000099; font-weight: bold;'
00091       ),
00092     'BRACKETS' => array(
00093       0 => 'color: #66cc66;'
00094       ),
00095     'STRINGS' => array(
00096       0 => 'color: #3366CC;'
00097       ),
00098     'NUMBERS' => array(
00099       0 => 'color: #CC0000;'
00100       ),
00101     'METHODS' => array(
00102       1 => 'color: #006600;'
00103       ),
00104     'SYMBOLS' => array(
00105       0 => 'color: #66cc66;'
00106       ),
00107     'REGEXPS' => array(
00108       0 => 'color: #0066FF;'
00109       ),
00110     'SCRIPT' => array(
00111       0 => '',
00112       1 => '',
00113       2 => '',
00114       3 => ''
00115       )
00116     ),
00117   'URLS' => array(
00118           1 => '',
00119           2 => '',
00120           3 => ''
00121      ),
00122   'OOLANG' => true,
00123   'OBJECT_SPLITTERS' => array(
00124      1 => '.'
00125      ),
00126   'REGEXPS' => array(
00127     0 => "/.*/([igm]*)?"         // matches js reg exps
00128     ),
00129   'STRICT_MODE_APPLIES' => GESHI_MAYBE,
00130   'SCRIPT_DELIMITERS' => array(
00131     0 => array(
00132       '<script type="text/javascript">' => '</script>'
00133       ),
00134     1 => array(
00135       '<script language="javascript">' => '</script>'
00136       )
00137     ),
00138   'HIGHLIGHT_STRICT_BLOCK' => array(
00139     0 => true,
00140     1 => true
00141   )
00142 );
00143 
00144 ?>

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