plugins/geshi/geshi/apache.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * apache.php
     3  * apache.php
     4  * ----------
     4  * ----------
     5  * Author: Tux (tux@inmail.cz)
     5  * Author: Tux (tux@inmail.cz)
     6  * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
     6  * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2004/29/07
     8  * Date Started: 2004/29/07
     9  *
     9  *
    10  * Apache language file for GeSHi.
    10  * Apache language file for GeSHi.
    11  * Words are from SciTe configuration file
    11  * Words are from SciTe configuration file
    12  *
    12  *
    13  * CHANGES
    13  * CHANGES
    14  * -------
    14  * -------
       
    15  * 2008/17/06 (1.0.8)
       
    16  *  -  Added support for apache configuration sections (milian)
       
    17  *  -  Added missing php keywords (milian)
       
    18  *  -  Added some more keywords
       
    19  *  -  Disabled highlighting of brackets by default
    15  * 2004/11/27 (1.0.2)
    20  * 2004/11/27 (1.0.2)
    16  *  -  Added support for multiple object splitters
    21  *  -  Added support for multiple object splitters
    17  * 2004/10/27 (1.0.1)
    22  * 2004/10/27 (1.0.1)
    18  *   -  Added support for URLs
    23  *   -  Added support for URLs
    19  * 2004/08/05 (1.0.0)
    24  * 2004/08/05 (1.0.0)
    41  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    46  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    42  *
    47  *
    43  ************************************************************************************/
    48  ************************************************************************************/
    44 
    49 
    45 $language_data = array (
    50 $language_data = array (
    46 	'LANG_NAME' => 'Apache Log',
    51     'LANG_NAME' => 'Apache configuration',
    47 	'COMMENT_SINGLE' => array(1 => '#'),
    52     'COMMENT_SINGLE' => array(1 => '#'),
    48 	'COMMENT_MULTI' => array(),
    53     'COMMENT_MULTI' => array(),
    49 	'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    54     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    50 	'QUOTEMARKS' => array("'", '"'),
    55     'QUOTEMARKS' => array("'", '"'),
    51 	'ESCAPE_CHAR' => '\\',
    56     'ESCAPE_CHAR' => '\\',
    52 	'KEYWORDS' => array(
    57     'KEYWORDS' => array(
    53 		/*keywords*/
    58         /*keywords*/
    54 	        1 => array(
    59         1 => array(
    55 			'accessconfig','accessfilename','action','addalt',
    60             'accessconfig','accessfilename','action','addalt',
    56 			'addaltbyencoding','addaltbytype','addcharset',
    61             'addaltbyencoding','addaltbytype','addcharset',
    57 			'adddefaultcharset','adddescription',
    62             'adddefaultcharset','adddescription',
    58 			'addencoding','addhandler','addicon','addiconbyencoding',
    63             'addencoding','addhandler','addicon','addiconbyencoding',
    59 			'addiconbytype','addlanguage','addmodule','addmoduleinfo',
    64             'addiconbytype','addlanguage','addmodule','addmoduleinfo',
    60 			'addtype','agentlog','alias','aliasmatch',
    65             'addtype','agentlog','alias','aliasmatch',
    61 			'allow','allowconnect','allowoverride','anonymous',
    66             'allow','allowconnect','allowoverride','anonymous',
    62 			'anonymous_authoritative','anonymous_logemail','anonymous_mustgiveemail',
    67             'anonymous_authoritative','anonymous_logemail','anonymous_mustgiveemail',
    63 			'anonymous_nouserid','anonymous_verifyemail','authauthoritative',
    68             'anonymous_nouserid','anonymous_verifyemail','authauthoritative',
    64 			'authdbauthoritative','authdbgroupfile','authdbmauthoritative',
    69             'authdbauthoritative','authdbgroupfile','authdbmauthoritative',
    65 			'authdbmgroupfile','authdbmgroupfile','authdbuserfile','authdbmuserfile',
    70             'authdbmgroupfile','authdbuserfile','authdbmuserfile',
    66 			'authdigestfile','authgroupfile','authname','authtype',
    71             'authdigestfile','authgroupfile','authname','authtype',
    67 			'authuserfile','bindaddress','browsermatch','browsermatchnocase',
    72             'authuserfile','bindaddress','browsermatch','browsermatchnocase',
    68 			'bs2000account','cachedefaultexpire','cachedirlength','cachedirlevels',
    73             'bs2000account','cachedefaultexpire','cachedirlength','cachedirlevels',
    69 			'cacheforcecompletion','cachegcinterval','cachelastmodifiedfactor','cachemaxexpire',
    74             'cacheforcecompletion','cachegcinterval','cachelastmodifiedfactor','cachemaxexpire',
    70 			'cachenegotiateddocs','cacheroot','cachesize','checkspelling',
    75             'cachenegotiateddocs','cacheroot','cachesize','checkspelling',
    71 			'clearmodulelist','contentdigest','cookieexpires','cookielog',
    76             'clearmodulelist','contentdigest','cookieexpires','cookielog',
    72 			'cookielog','cookietracking','coredumpdirectory','customlog',
    77             'cookietracking','coredumpdirectory','customlog',
    73 			'defaulticon','defaultlanguage','defaulttype','define',
    78             'defaulticon','defaultlanguage','defaulttype','define',
    74 			'deny','directory','directorymatch','directoryindex',
    79             'deny','directory','directorymatch','directoryindex',
    75 			'documentroot','errordocument','errorlog','example',
    80             'documentroot','errordocument','errorlog','example',
    76 			'expiresactive','expiresbytype','expiresdefault','extendedstatus',
    81             'expiresactive','expiresbytype','expiresdefault','extendedstatus',
    77 			'fancyindexing','files','filesmatch','forcetype',
    82             'fancyindexing','files','filesmatch','forcetype',
    78 			'group','header','headername','hostnamelookups',
    83             'group','header','headername','hostnamelookups',
    79 			'identitycheck','ifdefine','ifmodule','imapbase',
    84             'identitycheck','ifdefine','ifmodule','imapbase',
    80 			'imapdefault','imapmenu','include','indexignore',
    85             'imapdefault','imapmenu','include','indexignore','indexorderdefault',
    81 			'indexoptions','keepalive','keepalivetimeout','languagepriority',
    86             'indexoptions','keepalive','keepalivetimeout','languagepriority',
    82 			'limit','limitexcept','limitrequestbody','limitrequestfields',
    87             'limit','limitexcept','limitrequestbody','limitrequestfields',
    83 			'limitrequestfieldsize','limitrequestline','listen','listenbacklog',
    88             'limitrequestfieldsize','limitrequestline','listen','listenbacklog',
    84 			'loadfile','loadmodule','location','locationmatch',
    89             'loadfile','loadmodule','location','locationmatch',
    85 			'lockfile','logformat','loglevel','maxclients',
    90             'lockfile','logformat','loglevel','maxclients',
    86 			'maxkeepaliverequests','maxrequestsperchild','maxspareservers','metadir',
    91             'maxkeepaliverequests','maxrequestsperchild','maxspareservers','maxsparethreads','metadir',
    87 			'metafiles','metasuffix','mimemagicfile','minspareservers',
    92             'metafiles','metasuffix','mimemagicfile','minspareservers','minsparethreads',
    88 			'mmapfile','namevirtualhost','nocache','options','order',
    93             'mmapfile','namevirtualhost','nocache','options','order',
    89 			'passenv','pidfile','port','proxyblock','proxydomain',
    94             'passenv','php_admin_value','php_admin_flag','php_value','pidfile','port','proxyblock','proxydomain',
    90 			'proxypass','proxypassreverse','proxyreceivebuffersize','proxyremote',
    95             'proxypass','proxypassreverse','proxyreceivebuffersize','proxyremote',
    91 			'proxyrequests','proxyvia','qsc','readmename',
    96             'proxyrequests','proxyvia','qsc','readmename',
    92 			'redirect','redirectmatch','redirectpermanent','redirecttemp',
    97             'redirect','redirectmatch','redirectpermanent','redirecttemp',
    93 			'refererignore','refererlog','removehandler','require',
    98             'refererignore','refererlog','removehandler','require',
    94 			'resourceconfig','rewritebase','rewritecond','rewriteengine',
    99             'resourceconfig','rewritebase','rewritecond','rewriteengine',
    95 			'rewritelock','rewritelog','rewriteloglevel','rewritemap',
   100             'rewritelock','rewritelog','rewriteloglevel','rewritemap',
    96 			'rewriteoptions','rewriterule','rlimitcpu','rlimitmem',
   101             'rewriteoptions','rewriterule','rlimitcpu','rlimitmem',
    97 			'rlimitnproc','satisfy','scoreboardfile','script',
   102             'rlimitnproc','satisfy','scoreboardfile','script',
    98 			'scriptalias','scriptaliasmatch','scriptinterpretersource','scriptlog',
   103             'scriptalias','scriptaliasmatch','scriptinterpretersource','scriptlog',
    99 			'scriptlogbuffer','scriptloglength','sendbuffersize',
   104             'scriptlogbuffer','scriptloglength','sendbuffersize',
   100 			'serveradmin','serveralias','servername','serverpath',
   105             'serveradmin','serveralias','servername','serverpath',
   101 			'serverroot','serversignature','servertokens','servertype',
   106             'serverroot','serversignature','servertokens','servertype',
   102 			'setenv','setenvif','setenvifnocase','sethandler',
   107             'setenv','setenvif','setenvifnocase','sethandler',
   103 			'singlelisten','startservers','threadsperchild','timeout',
   108             'singlelisten','startservers','threadsperchild','timeout',
   104 			'transferlog','typesconfig','unsetenv','usecanonicalname',
   109             'transferlog','typesconfig','unsetenv','usecanonicalname',
   105 			'user','userdir','virtualhost','virtualdocumentroot',
   110             'user','userdir','virtualhost','virtualdocumentroot',
   106 			'virtualdocumentrootip','virtualscriptalias','virtualscriptaliasip',
   111             'virtualdocumentrootip','virtualscriptalias','virtualscriptaliasip',
   107 			'xbithack','from','all'
   112             'xbithack','from','all'
   108 		  ),
   113             ),
   109 		/*keyords 2*/
   114         /*keywords 2*/
   110 		2 => array(
   115         2 => array(
   111 			'on','off','standalone','inetd',
   116             'on','off','standalone','inetd','indexes',
   112 			'force-response-1.0','downgrade-1.0','nokeepalive',
   117             'force-response-1.0','downgrade-1.0','nokeepalive',
   113 			'ndexes','includes','followsymlinks','none',
   118             'ndexes','includes','followsymlinks','none',
   114 			'x-compress','x-gzip'
   119             'x-compress','x-gzip'
   115 		)
   120         ),
   116 	),
   121         /*keywords 3*/
   117 	'SYMBOLS' => array(
   122         3 => array(
   118 		'(', ')'
   123             'Directory',
   119 		),
   124             'DirectoryMatch',
   120 	'CASE_SENSITIVE' => array(
   125             'Files',
   121 		GESHI_COMMENTS => true,
   126             'FilesMatch',
   122 		1 => false,
   127             'IfDefine',
   123 		2 => false,
   128             'IfModule',
   124 		),
   129             'IfVersion',
   125 	'STYLES' => array(
   130             'Location',
   126 		'KEYWORDS' => array(
   131             'LocationMatch',
   127 			1 => 'color: #00007f;',
   132             'Proxy',
   128 			2 => 'color: #0000ff;',
   133             'ProxyMatch',
   129 			),
   134             'VirtualHost'
   130 		'COMMENTS' => array(
   135         )
   131 			1 => 'color: #adadad; font-style: italic;',
   136     ),
   132 			),
   137     'SYMBOLS' => array(
   133 		'ESCAPE_CHAR' => array(
   138         '+', '-'
   134 			0 => 'color: #000099; font-weight: bold;'
   139         ),
   135 			),
   140     'CASE_SENSITIVE' => array(
   136 		'BRACKETS' => array(
   141         GESHI_COMMENTS => false,
   137 			0 => 'color: #66cc66;'
   142         1 => false,
   138 			),
   143         2 => false,
   139 		'STRINGS' => array(
   144         3 => false,
   140 			0 => 'color: #7f007f;'
   145         ),
   141 			),
   146     'STYLES' => array(
   142 		'NUMBERS' => array(
   147         'KEYWORDS' => array(
   143 			0 => 'color: #ff0000;'
   148             1 => 'color: #00007f;',
   144 			),
   149             2 => 'color: #0000ff;',
   145 		'METHODS' => array(
   150             3 => 'color: #000000; font-weight:bold;',
   146 			),
   151             ),
   147 		'SYMBOLS' => array(
   152         'COMMENTS' => array(
   148 			0 => 'color: #66cc66;'
   153             1 => 'color: #adadad; font-style: italic;',
   149 			),
   154             ),
   150 		'REGEXPS' => array(
   155         'ESCAPE_CHAR' => array(
   151 			),
   156             0 => 'color: #000099; font-weight: bold;'
   152 		'SCRIPT' => array(
   157             ),
   153 			)
   158         'BRACKETS' => array(
   154 		),
   159             0 => 'color: #339933;'
   155 	'URLS' => array(
   160             ),
   156 		1 => '',
   161         'STRINGS' => array(
   157 		2 => ''
   162             0 => 'color: #7f007f;'
   158 		),
   163             ),
   159 	'OOLANG' => false,
   164         'NUMBERS' => array(
   160 	'OBJECT_SPLITTERS' => array(
   165             0 => 'color: #ff0000;'
   161 		),
   166             ),
   162 	'REGEXPS' => array(
   167         'METHODS' => array(
   163 		),
   168             ),
   164 	'STRICT_MODE_APPLIES' => GESHI_NEVER,
   169         'SYMBOLS' => array(
   165 	'SCRIPT_DELIMITERS' => array(
   170             0 => 'color: #008000;'
   166 		),
   171             ),
   167 	'HIGHLIGHT_STRICT_BLOCK' => array(
   172         'REGEXPS' => array(
   168 		)
   173             ),
       
   174         'SCRIPT' => array(
       
   175             )
       
   176         ),
       
   177     'URLS' => array(
       
   178         1 => '',
       
   179         2 => '',
       
   180         3 => ''
       
   181         ),
       
   182     'OOLANG' => false,
       
   183     'OBJECT_SPLITTERS' => array(
       
   184         ),
       
   185     'REGEXPS' => array(
       
   186         ),
       
   187     'STRICT_MODE_APPLIES' => GESHI_NEVER,
       
   188     'SCRIPT_DELIMITERS' => array(
       
   189         ),
       
   190     'HIGHLIGHT_STRICT_BLOCK' => array(
       
   191         ),
       
   192     'PARSER_CONTROL' => array(
       
   193         'ENABLE_FLAGS' => array(
       
   194             'BRACKETS' => GESHI_NEVER,
       
   195             'SYMBOLS' => GESHI_NEVER
       
   196         ),
       
   197         'KEYWORDS' => array(
       
   198             3 => array(
       
   199                 'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
       
   200                 'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
       
   201             )
       
   202         )
       
   203     )
   169 );
   204 );
   170 
   205 
   171 ?>
   206 ?>