KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

483 lines
17KB

  1. <?php
  2. /*************************************************************************************
  3. * apache.php
  4. * ----------
  5. * Author: Tux (tux@inmail.cz)
  6. * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/29/07
  9. *
  10. * Apache language file for GeSHi.
  11. * Words are from SciTe configuration file
  12. *
  13. * CHANGES
  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
  20. * 2004/11/27 (1.0.2)
  21. * - Added support for multiple object splitters
  22. * 2004/10/27 (1.0.1)
  23. * - Added support for URLs
  24. * 2004/08/05 (1.0.0)
  25. * - First Release
  26. *
  27. * TODO (updated 2004/07/29)
  28. * -------------------------
  29. *
  30. *************************************************************************************
  31. *
  32. * This file is part of GeSHi.
  33. *
  34. * GeSHi is free software; you can redistribute it and/or modify
  35. * it under the terms of the GNU General Public License as published by
  36. * the Free Software Foundation; either version 2 of the License, or
  37. * (at your option) any later version.
  38. *
  39. * GeSHi is distributed in the hope that it will be useful,
  40. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42. * GNU General Public License for more details.
  43. *
  44. * You should have received a copy of the GNU General Public License
  45. * along with GeSHi; if not, write to the Free Software
  46. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  47. *
  48. ************************************************************************************/
  49. $language_data = array (
  50. 'LANG_NAME' => 'Apache configuration',
  51. 'COMMENT_SINGLE' => array(1 => '#'),
  52. 'COMMENT_MULTI' => array(),
  53. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  54. 'QUOTEMARKS' => array("'", '"'),
  55. 'ESCAPE_CHAR' => '\\',
  56. 'KEYWORDS' => array(
  57. /*keywords*/
  58. 1 => array(
  59. //core.c
  60. 'AcceptFilter','AcceptPathInfo','AccessConfig','AccessFileName',
  61. 'AddDefaultCharset','AddOutputFilterByType','AllowEncodedSlashes',
  62. 'AllowOverride','AuthName','AuthType','ContentDigest',
  63. 'CoreDumpDirectory','DefaultType','DocumentRoot','EnableMMAP',
  64. 'EnableSendfile','ErrorDocument','ErrorLog','FileETag','ForceType',
  65. 'HostnameLookups','Include','LimitInternalRecursion',
  66. 'LimitRequestBody','LimitRequestFields','LimitRequestFieldsize',
  67. 'LimitRequestLine','LimitXMLRequestBody','LogLevel','MaxMemFree',
  68. 'MaxRequestsPerChild','NameVirtualHost','Options','PidFile','Port',
  69. 'Protocol','Require','RLimitCPU','RLimitMEM','RLimitNPROC',
  70. 'Satisfy','ScoreBoardFile','ServerAdmin','ServerAlias','ServerName',
  71. 'ServerPath','ServerRoot','ServerSignature','ServerTokens',
  72. 'SetHandler','SetInputFilter','SetOutputFilter','ThreadStackSize',
  73. 'Timeout','TraceEnable','UseCanonicalName',
  74. 'UseCanonicalPhysicalPort',
  75. //http_core.c
  76. 'KeepAlive','KeepAliveTimeout','MaxKeepAliveRequests',
  77. //mod_actions.c
  78. 'Action','Script',
  79. //mod_alias.c
  80. 'Alias','AliasMatch','Redirect','RedirectMatch','RedirectPermanent',
  81. 'RedirectTemp','ScriptAlias','ScriptAliasMatch',
  82. //mod_asis.c
  83. //mod_auth_basic.c
  84. 'AuthBasicAuthoritative','AuthBasicProvider',
  85. //mod_auth_digest.c
  86. 'AuthDigestAlgorithm','AuthDigestDomain','AuthDigestNcCheck',
  87. 'AuthDigestNonceFormat','AuthDigestNonceLifetime',
  88. 'AuthDigestProvider','AuthDigestQop','AuthDigestShmemSize',
  89. //mod_authn_alias.c
  90. //mod_authn_anon.c
  91. 'Anonymous','Anonymous_LogEmail','Anonymous_MustGiveEmail',
  92. 'Anonymous_NoUserId','Anonymous_VerifyEmail',
  93. //mod_authn_dbd.c
  94. 'AuthDBDUserPWQuery','AuthDBDUserRealmQuery',
  95. //mod_authn_dbm.c
  96. 'AuthDBMType','AuthDBMUserFile',
  97. //mod_authn_default.c
  98. 'AuthDefaultAuthoritative',
  99. //mod_authn_file.c
  100. 'AuthUserFile',
  101. //mod_authnz_ldap.c
  102. 'AuthLDAPBindDN','AuthLDAPBindPassword','AuthLDAPCharsetConfig',
  103. 'AuthLDAPCompareDNOnServer','AuthLDAPDereferenceAliases',
  104. 'AuthLDAPGroupAttribute','AuthLDAPGroupAttributeIsDN',
  105. 'AuthLDAPRemoteUserAttribute','AuthLDAPRemoteUserIsDN',
  106. 'AuthLDAPURL','AuthzLDAPAuthoritative',
  107. //mod_authz_dbm.c
  108. 'AuthDBMGroupFile','AuthzDBMAuthoritative','AuthzDBMType',
  109. //mod_authz_default.c
  110. 'AuthzDefaultAuthoritative',
  111. //mod_authz_groupfile.c
  112. 'AuthGroupFile','AuthzGroupFileAuthoritative',
  113. //mod_authz_host.c
  114. 'Allow','Deny','Order',
  115. //mod_authz_owner.c
  116. 'AuthzOwnerAuthoritative',
  117. //mod_authz_svn.c
  118. 'AuthzForceUsernameCase','AuthzSVNAccessFile','AuthzSVNAnonymous',
  119. 'AuthzSVNAuthoritative','AuthzSVNNoAuthWhenAnonymousAllowed',
  120. //mod_authz_user.c
  121. 'AuthzUserAuthoritative',
  122. //mod_autoindex.c
  123. 'AddAlt','AddAltByEncoding','AddAltByType','AddDescription',
  124. 'AddIcon','AddIconByEncoding','AddIconByType','DefaultIcon',
  125. 'FancyIndexing','HeaderName','IndexHeadInsert','IndexIgnore',
  126. 'IndexOptions','IndexOrderDefault','IndexStyleSheet','ReadmeName',
  127. //mod_bt.c
  128. 'Tracker','TrackerDetailURL','TrackerFlags','TrackerHashMaxAge',
  129. 'TrackerHashMinAge','TrackerHashWatermark','TrackerHome',
  130. 'TrackerReturnInterval','TrackerReturnMax',
  131. 'TrackerReturnPeerFactor','TrackerReturnPeers','TrackerRootInclude',
  132. 'TrackerStyleSheet',
  133. //mod_bw.c
  134. 'BandWidth','BandWidthError','BandWidthModule','BandWidthPacket',
  135. 'ForceBandWidthModule','LargeFileLimit','MaxConnection',
  136. 'MinBandWidth',
  137. //mod_cache.c
  138. 'CacheDefaultExpire','CacheDisable','CacheEnable',
  139. 'CacheIgnoreCacheControl','CacheIgnoreHeaders',
  140. 'CacheIgnoreNoLastMod','CacheIgnoreQueryString',
  141. 'CacheLastModifiedFactor','CacheMaxExpire','CacheStoreNoStore',
  142. 'CacheStorePrivate',
  143. //mod_cern_meta.c
  144. 'MetaDir','MetaFiles','MetaSuffix',
  145. //mod_cgi.c
  146. 'ScriptLog','ScriptLogBuffer','ScriptLogLength',
  147. //mod_charset_lite.c
  148. 'CharsetDefault','CharsetOptions','CharsetSourceEnc',
  149. //mod_dav.c
  150. 'DAV','DAVDepthInfinity','DAVMinTimeout',
  151. //mod_dav_fs.c
  152. 'DAVLockDB',
  153. //mod_dav_lock.c
  154. 'DAVGenericLockDB',
  155. //mod_dav_svn.c
  156. 'SVNActivitiesDB','SVNAllowBulkUpdates','SVNAutoversioning',
  157. 'SVNIndexXSLT','SVNListParentPath','SVNMasterURI','SVNParentPath',
  158. 'SVNPath','SVNPathAuthz','SVNReposName','SVNSpecialURI',
  159. //mod_dbd.c
  160. 'DBDExptime','DBDKeep','DBDMax','DBDMin','DBDParams','DBDPersist',
  161. 'DBDPrepareSQL','DBDriver',
  162. //mod_deflate.c
  163. 'DeflateBufferSize','DeflateCompressionLevel','DeflateFilterNote',
  164. 'DeflateMemLevel','DeflateWindowSize',
  165. //mod_dir.c
  166. 'DirectoryIndex','DirectorySlash',
  167. //mod_disk_cache.c
  168. 'CacheDirLength','CacheDirLevels','CacheMaxFileSize',
  169. 'CacheMinFileSize','CacheRoot',
  170. //mod_dumpio.c
  171. 'DumpIOInput','DumpIOLogLevel','DumpIOOutput',
  172. //mod_env.c
  173. 'PassEnv','SetEnv','UnsetEnv',
  174. //mod_expires.c
  175. 'ExpiresActive','ExpiresByType','ExpiresDefault',
  176. //mod_ext_filter.c
  177. 'ExtFilterDefine','ExtFilterOptions',
  178. //mod_file_cache.c
  179. 'cachefile','mmapfile',
  180. //mod_filter.c
  181. 'FilterChain','FilterDeclare','FilterProtocol','FilterProvider',
  182. 'FilterTrace',
  183. //mod_gnutls.c
  184. 'GnuTLSCache','GnuTLSCacheTimeout','GnuTLSCertificateFile',
  185. 'GnuTLSKeyFile','GnuTLSPGPCertificateFile','GnuTLSPGPKeyFile',
  186. 'GnuTLSClientVerify','GnuTLSClientCAFile','GnuTLSPGPKeyringFile',
  187. 'GnuTLSEnable','GnuTLSDHFile','GnuTLSRSAFile','GnuTLSSRPPasswdFile',
  188. 'GnuTLSSRPPasswdConfFile','GnuTLSPriorities',
  189. 'GnuTLSExportCertificates',
  190. //mod_headers.c
  191. 'Header','RequestHeader',
  192. //mod_imagemap.c
  193. 'ImapBase','ImapDefault','ImapMenu',
  194. //mod_include.c
  195. 'SSIAccessEnable','SSIEndTag','SSIErrorMsg','SSIStartTag',
  196. 'SSITimeFormat','SSIUndefinedEcho','XBitHack',
  197. //mod_ident.c
  198. 'IdentityCheck','IdentityCheckTimeout',
  199. //mod_info.c
  200. 'AddModuleInfo',
  201. //mod_isapi.c
  202. 'ISAPIAppendLogToErrors','ISAPIAppendLogToQuery','ISAPICacheFile',
  203. 'ISAPIFakeAsync','ISAPILogNotSupported','ISAPIReadAheadBuffer',
  204. //mod_log_config.c
  205. 'BufferedLogs','CookieLog','CustomLog','LogFormat','TransferLog',
  206. //mod_log_forensic.c
  207. 'ForensicLog',
  208. //mod_log_rotate.c
  209. 'RotateInterval','RotateLogs','RotateLogsLocalTime',
  210. //mod_logio.c
  211. //mod_mem_cache.c
  212. 'MCacheMaxObjectCount','MCacheMaxObjectSize',
  213. 'MCacheMaxStreamingBuffer','MCacheMinObjectSize',
  214. 'MCacheRemovalAlgorithm','MCacheSize',
  215. //mod_mime.c
  216. 'AddCharset','AddEncoding','AddHandler','AddInputFilter',
  217. 'AddLanguage','AddOutputFilter','AddType','DefaultLanguage',
  218. 'ModMimeUsePathInfo','MultiviewsMatch','RemoveCharset',
  219. 'RemoveEncoding','RemoveHandler','RemoveInputFilter',
  220. 'RemoveLanguage','RemoveOutputFilter','RemoveType','TypesConfig',
  221. //mod_mime_magic.c
  222. 'MimeMagicFile',
  223. //mod_negotiation.c
  224. 'CacheNegotiatedDocs','ForceLanguagePriority','LanguagePriority',
  225. //mod_php5.c
  226. 'php_admin_flag','php_admin_value','php_flag','php_value',
  227. 'PHPINIDir',
  228. //mod_proxy.c
  229. 'AllowCONNECT','BalancerMember','NoProxy','ProxyBadHeader',
  230. 'ProxyBlock','ProxyDomain','ProxyErrorOverride',
  231. 'ProxyFtpDirCharset','ProxyIOBufferSize','ProxyMaxForwards',
  232. 'ProxyPass','ProxyPassInterpolateEnv','ProxyPassMatch',
  233. 'ProxyPassReverse','ProxyPassReverseCookieDomain',
  234. 'ProxyPassReverseCookiePath','ProxyPreserveHost',
  235. 'ProxyReceiveBufferSize','ProxyRemote','ProxyRemoteMatch',
  236. 'ProxyRequests','ProxySet','ProxyStatus','ProxyTimeout','ProxyVia',
  237. //mod_proxy_ajp.c
  238. //mod_proxy_balancer.c
  239. //mod_proxy_connect.c
  240. //mod_proxy_ftp.c
  241. //mod_proxy_http.c
  242. //mod_rewrite.c
  243. 'RewriteBase','RewriteCond','RewriteEngine','RewriteLock',
  244. 'RewriteLog','RewriteLogLevel','RewriteMap','RewriteOptions',
  245. 'RewriteRule',
  246. //mod_setenvif.c
  247. 'BrowserMatch','BrowserMatchNoCase','SetEnvIf','SetEnvIfNoCase',
  248. //mod_so.c
  249. 'LoadFile','LoadModule',
  250. //mod_speling.c
  251. 'CheckCaseOnly','CheckSpelling',
  252. //mod_ssl.c
  253. 'SSLCACertificateFile','SSLCACertificatePath','SSLCADNRequestFile',
  254. 'SSLCADNRequestPath','SSLCARevocationFile','SSLCARevocationPath',
  255. 'SSLCertificateChainFile','SSLCertificateFile',
  256. 'SSLCertificateKeyFile','SSLCipherSuite','SSLCryptoDevice',
  257. 'SSLEngine','SSLHonorCipherOrder','SSLMutex','SSLOptions',
  258. 'SSLPassPhraseDialog','SSLProtocol','SSLProxyCACertificateFile',
  259. 'SSLProxyCACertificatePath','SSLProxyCARevocationFile',
  260. 'SSLProxyCARevocationPath','SSLProxyCipherSuite','SSLProxyEngine',
  261. 'SSLProxyMachineCertificateFile','SSLProxyMachineCertificatePath',
  262. 'SSLProxyProtocol','SSLProxyVerify','SSLProxyVerifyDepth',
  263. 'SSLRandomSeed','SSLRenegBufferSize','SSLRequire','SSLRequireSSL',
  264. 'SSLSessionCache','SSLSessionCacheTimeout','SSLUserName',
  265. 'SSLVerifyClient','SSLVerifyDepth',
  266. //mod_status.c
  267. 'ExtendedStatus','SeeRequestTail',
  268. //mod_substitute.c
  269. 'Substitute',
  270. //mod_suexec.c
  271. 'SuexecUserGroup',
  272. //mod_unique_id.c
  273. //mod_upload_progress
  274. 'ReportUploads', 'TrackUploads', 'UploadProgressSharedMemorySize',
  275. //mod_userdir.c
  276. 'UserDir',
  277. //mod_usertrack.c
  278. 'CookieDomain','CookieExpires','CookieName','CookieStyle',
  279. 'CookieTracking',
  280. //mod_version.c
  281. //mod_vhost_alias.c
  282. 'VirtualDocumentRoot','VirtualDocumentRootIP',
  283. 'VirtualScriptAlias','VirtualScriptAliasIP',
  284. //mod_view.c
  285. 'ViewEnable',
  286. //mod_win32.c
  287. 'ScriptInterpreterSource',
  288. //mpm_winnt.c
  289. 'Listen','ListenBacklog','ReceiveBufferSize','SendBufferSize',
  290. 'ThreadLimit','ThreadsPerChild','Win32DisableAcceptEx',
  291. //mpm_common.c
  292. 'AcceptMutex','AddModule','ClearModuleList','EnableExceptionHook',
  293. 'Group','LockFile','MaxClients','MaxSpareServers','MaxSpareThreads',
  294. 'MinSpareServers','MinSpareThreads','ServerLimit','StartServers',
  295. 'StartThreads','User',
  296. //util_ldap.c
  297. 'LDAPCacheEntries','LDAPCacheTTL','LDAPConnectionTimeout',
  298. 'LDAPOpCacheEntries','LDAPOpCacheTTL','LDAPSharedCacheFile',
  299. 'LDAPSharedCacheSize','LDAPTrustedClientCert',
  300. 'LDAPTrustedGlobalCert','LDAPTrustedMode','LDAPVerifyServerCert',
  301. //Unknown Mods ...
  302. 'AgentLog','BindAddress','bs2000account','CacheForceCompletion',
  303. 'CacheGCInterval','CacheSize','NoCache','qsc','RefererIgnore',
  304. 'RefererLog','Resourceconfig','ServerType','SingleListen'
  305. ),
  306. /*keywords 2*/
  307. 2 => array(
  308. 'all','on','off','standalone','inetd','indexes',
  309. 'force-response-1.0','downgrade-1.0','nokeepalive',
  310. 'includes','followsymlinks','none',
  311. 'x-compress','x-gzip'
  312. ),
  313. /*keywords 3*/
  314. 3 => array(
  315. //core.c
  316. 'Directory','DirectoryMatch','Files','FilesMatch','IfDefine',
  317. 'IfModule','Limit','LimitExcept','Location','LocationMatch',
  318. 'VirtualHost',
  319. //mod_authn_alias.c
  320. 'AuthnProviderAlias',
  321. //mod_proxy.c
  322. 'Proxy','ProxyMatch',
  323. //mod_version.c
  324. 'IfVersion'
  325. )
  326. ),
  327. 'SYMBOLS' => array(
  328. '+', '-'
  329. ),
  330. 'CASE_SENSITIVE' => array(
  331. GESHI_COMMENTS => false,
  332. 1 => false,
  333. 2 => false,
  334. 3 => false,
  335. ),
  336. 'STYLES' => array(
  337. 'KEYWORDS' => array(
  338. 1 => 'color: #00007f;',
  339. 2 => 'color: #0000ff;',
  340. 3 => 'color: #000000; font-weight:bold;',
  341. ),
  342. 'COMMENTS' => array(
  343. 1 => 'color: #adadad; font-style: italic;',
  344. ),
  345. 'ESCAPE_CHAR' => array(
  346. 0 => 'color: #000099; font-weight: bold;'
  347. ),
  348. 'BRACKETS' => array(
  349. 0 => 'color: #339933;'
  350. ),
  351. 'STRINGS' => array(
  352. 0 => 'color: #7f007f;'
  353. ),
  354. 'NUMBERS' => array(
  355. 0 => 'color: #ff0000;'
  356. ),
  357. 'METHODS' => array(
  358. ),
  359. 'SYMBOLS' => array(
  360. 0 => 'color: #008000;'
  361. ),
  362. 'REGEXPS' => array(
  363. ),
  364. 'SCRIPT' => array(
  365. )
  366. ),
  367. 'URLS' => array(
  368. 1 => '',
  369. 2 => '',
  370. 3 => ''
  371. ),
  372. 'OOLANG' => false,
  373. 'OBJECT_SPLITTERS' => array(
  374. ),
  375. 'REGEXPS' => array(
  376. ),
  377. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  378. 'SCRIPT_DELIMITERS' => array(
  379. ),
  380. 'HIGHLIGHT_STRICT_BLOCK' => array(
  381. ),
  382. 'PARSER_CONTROL' => array(
  383. 'ENABLE_FLAGS' => array(
  384. 'BRACKETS' => GESHI_NEVER,
  385. 'SYMBOLS' => GESHI_NEVER
  386. ),
  387. 'KEYWORDS' => array(
  388. 3 => array(
  389. 'DISALLOWED_BEFORE' => '(?<=&lt;|&lt;\/)',
  390. 'DISALLOWED_AFTER' => '(?=\s|\/|&gt;)',
  391. )
  392. )
  393. )
  394. );
  395. ?>