1 | 1 | simandl | <?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 | 3 | simandl | * Release Version: 1.0.8.3 |
8 | 1 | simandl | * 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 | | | |
50 | | | $language_data = array ( |
51 | | | 'LANG_NAME' => 'Apache configuration', |
52 | | | 'COMMENT_SINGLE' => array(1 => '#'), |
53 | | | 'COMMENT_MULTI' => array(), |
54 | | | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
55 | | | 'QUOTEMARKS' => array("'", '"'), |
56 | | | 'ESCAPE_CHAR' => '\\', |
57 | | | 'KEYWORDS' => array( |
58 | | | /*keywords*/ |
59 | | | 1 => array( |
60 | | | 'accessconfig','accessfilename','action','addalt', |
61 | | | 'addaltbyencoding','addaltbytype','addcharset', |
62 | | | 'adddefaultcharset','adddescription', |
63 | | | 'addencoding','addhandler','addicon','addiconbyencoding', |
64 | | | 'addiconbytype','addlanguage','addmodule','addmoduleinfo', |
65 | | | 'addtype','agentlog','alias','aliasmatch', |
66 | | | 'allow','allowconnect','allowoverride','anonymous', |
67 | | | 'anonymous_authoritative','anonymous_logemail','anonymous_mustgiveemail', |
68 | | | 'anonymous_nouserid','anonymous_verifyemail','authauthoritative', |
69 | | | 'authdbauthoritative','authdbgroupfile','authdbmauthoritative', |
70 | | | 'authdbmgroupfile','authdbuserfile','authdbmuserfile', |
71 | | | 'authdigestfile','authgroupfile','authname','authtype', |
72 | | | 'authuserfile','bindaddress','browsermatch','browsermatchnocase', |
73 | | | 'bs2000account','cachedefaultexpire','cachedirlength','cachedirlevels', |
74 | | | 'cacheforcecompletion','cachegcinterval','cachelastmodifiedfactor','cachemaxexpire', |
75 | | | 'cachenegotiateddocs','cacheroot','cachesize','checkspelling', |
76 | | | 'clearmodulelist','contentdigest','cookieexpires','cookielog', |
77 | | | 'cookietracking','coredumpdirectory','customlog', |
78 | | | 'defaulticon','defaultlanguage','defaulttype','define', |
79 | | | 'deny','directory','directorymatch','directoryindex', |
80 | | | 'documentroot','errordocument','errorlog','example', |
81 | | | 'expiresactive','expiresbytype','expiresdefault','extendedstatus', |
82 | | | 'fancyindexing','files','filesmatch','forcetype', |
83 | | | 'group','header','headername','hostnamelookups', |
84 | | | 'identitycheck','ifdefine','ifmodule','imapbase', |
85 | | | 'imapdefault','imapmenu','include','indexignore','indexorderdefault', |
86 | | | 'indexoptions','keepalive','keepalivetimeout','languagepriority', |
87 | | | 'limit','limitexcept','limitrequestbody','limitrequestfields', |
88 | | | 'limitrequestfieldsize','limitrequestline','listen','listenbacklog', |
89 | | | 'loadfile','loadmodule','location','locationmatch', |
90 | | | 'lockfile','logformat','loglevel','maxclients', |
91 | | | 'maxkeepaliverequests','maxrequestsperchild','maxspareservers','maxsparethreads','metadir', |
92 | | | 'metafiles','metasuffix','mimemagicfile','minspareservers','minsparethreads', |
93 | | | 'mmapfile','namevirtualhost','nocache','options','order', |
94 | | | 'passenv','php_admin_value','php_admin_flag','php_value','pidfile','port','proxyblock','proxydomain', |
95 | | | 'proxypass','proxypassreverse','proxyreceivebuffersize','proxyremote', |
96 | | | 'proxyrequests','proxyvia','qsc','readmename', |
97 | | | 'redirect','redirectmatch','redirectpermanent','redirecttemp', |
98 | | | 'refererignore','refererlog','removehandler','require', |
99 | | | 'resourceconfig','rewritebase','rewritecond','rewriteengine', |
100 | | | 'rewritelock','rewritelog','rewriteloglevel','rewritemap', |
101 | | | 'rewriteoptions','rewriterule','rlimitcpu','rlimitmem', |
102 | | | 'rlimitnproc','satisfy','scoreboardfile','script', |
103 | | | 'scriptalias','scriptaliasmatch','scriptinterpretersource','scriptlog', |
104 | | | 'scriptlogbuffer','scriptloglength','sendbuffersize', |
105 | | | 'serveradmin','serveralias','servername','serverpath', |
106 | | | 'serverroot','serversignature','servertokens','servertype', |
107 | | | 'setenv','setenvif','setenvifnocase','sethandler', |
108 | | | 'singlelisten','startservers','threadsperchild','timeout', |
109 | | | 'transferlog','typesconfig','unsetenv','usecanonicalname', |
110 | | | 'user','userdir','virtualhost','virtualdocumentroot', |
111 | | | 'virtualdocumentrootip','virtualscriptalias','virtualscriptaliasip', |
112 | | | 'xbithack','from','all' |
113 | | | ), |
114 | | | /*keywords 2*/ |
115 | | | 2 => array( |
116 | | | 'on','off','standalone','inetd','indexes', |
117 | | | 'force-response-1.0','downgrade-1.0','nokeepalive', |
118 | | | 'ndexes','includes','followsymlinks','none', |
119 | | | 'x-compress','x-gzip' |
120 | | | ), |
121 | | | /*keywords 3*/ |
122 | | | 3 => array( |
123 | | | 'Directory', |
124 | | | 'DirectoryMatch', |
125 | | | 'Files', |
126 | | | 'FilesMatch', |
127 | | | 'IfDefine', |
128 | | | 'IfModule', |
129 | | | 'IfVersion', |
130 | | | 'Location', |
131 | | | 'LocationMatch', |
132 | | | 'Proxy', |
133 | | | 'ProxyMatch', |
134 | | | 'VirtualHost' |
135 | | | ) |
136 | | | ), |
137 | | | 'SYMBOLS' => array( |
138 | | | '+', '-' |
139 | | | ), |
140 | | | 'CASE_SENSITIVE' => array( |
141 | | | GESHI_COMMENTS => false, |
142 | | | 1 => false, |
143 | | | 2 => false, |
144 | | | 3 => false, |
145 | | | ), |
146 | | | 'STYLES' => array( |
147 | | | 'KEYWORDS' => array( |
148 | | | 1 => 'color: #00007f;', |
149 | | | 2 => 'color: #0000ff;', |
150 | | | 3 => 'color: #000000; font-weight:bold;', |
151 | | | ), |
152 | | | 'COMMENTS' => array( |
153 | | | 1 => 'color: #adadad; font-style: italic;', |
154 | | | ), |
155 | | | 'ESCAPE_CHAR' => array( |
156 | | | |
157 | | | ), |
158 | | | 'BRACKETS' => array( |
159 | | | |
160 | | | ), |
161 | | | 'STRINGS' => array( |
162 | | | |
163 | | | ), |
164 | | | 'NUMBERS' => array( |
165 | | | |
166 | | | ), |
167 | | | 'METHODS' => array( |
168 | | | ), |
169 | | | 'SYMBOLS' => array( |
170 | | | |
171 | | | ), |
172 | | | 'REGEXPS' => array( |
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' => '(?<=<|<\/)', |
200 | | | 'DISALLOWED_AFTER' => '(?=\s|\/|>)', |
201 | | | ) |
202 | | | ) |
203 | | | ) |
204 | | | ); |
205 | | | |
206 | | | ?> |