1 | <?php
|
---|
2 | /*************************************************************************************
|
---|
3 | * email.php
|
---|
4 | * ---------------
|
---|
5 | * Author: Benny Baumann ([email protected])
|
---|
6 | * Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
|
---|
7 | * Release Version: 1.0.8.8
|
---|
8 | * Date Started: 2008/10/19
|
---|
9 | *
|
---|
10 | * Email (mbox \ eml \ RFC format) language file for GeSHi.
|
---|
11 | *
|
---|
12 | * CHANGES
|
---|
13 | * -------
|
---|
14 | * 2008/10/19 (1.0.8.1)
|
---|
15 | * - First Release
|
---|
16 | *
|
---|
17 | * TODO (updated 2008/10/19)
|
---|
18 | * -------------------------
|
---|
19 | * * Better checks when a header field should be expected
|
---|
20 | * * Fix the bound checks for kw groups 2 and 3, as well as rx group 1
|
---|
21 | *
|
---|
22 | *************************************************************************************
|
---|
23 | *
|
---|
24 | * This file is part of GeSHi.
|
---|
25 | *
|
---|
26 | * GeSHi is free software; you can redistribute it and/or modify
|
---|
27 | * it under the terms of the GNU General Public License as published by
|
---|
28 | * the Free Software Foundation; either version 2 of the License, or
|
---|
29 | * (at your option) any later version.
|
---|
30 | *
|
---|
31 | * GeSHi is distributed in the hope that it will be useful,
|
---|
32 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
33 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
34 | * GNU General Public License for more details.
|
---|
35 | *
|
---|
36 | * You should have received a copy of the GNU General Public License
|
---|
37 | * along with GeSHi; if not, write to the Free Software
|
---|
38 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
39 | *
|
---|
40 | ************************************************************************************/
|
---|
41 |
|
---|
42 | $language_data = array (
|
---|
43 | 'LANG_NAME' => 'eMail (mbox)',
|
---|
44 | 'COMMENT_SINGLE' => array(),
|
---|
45 | 'COMMENT_MULTI' => array(),
|
---|
46 | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
---|
47 | 'QUOTEMARKS' => array('"'),
|
---|
48 | 'ESCAPE_CHAR' => '',
|
---|
49 | 'KEYWORDS' => array(
|
---|
50 | 1 => array(
|
---|
51 | 'HTTP', 'SMTP', 'ASMTP', 'ESMTP'
|
---|
52 | ),
|
---|
53 | 2 => array(
|
---|
54 | 'Authentication-Results','Content-Description','Content-Type',
|
---|
55 | 'Content-Disposition','Content-Transfer-Encoding','Delivered-To',
|
---|
56 | 'Dkim-Signature','Domainkey-Signature','In-Reply-To','Message-Id',
|
---|
57 | 'MIME-Version','OpenPGP','Received','Received-SPF','References',
|
---|
58 | 'Resend-From','Resend-To','Return-Path','User-Agent'
|
---|
59 | ),
|
---|
60 | 3 => array(
|
---|
61 | 'Date','From','Subject','To',
|
---|
62 | ),
|
---|
63 | 4 => array(
|
---|
64 | 'by', 'for', 'from', 'id', 'with'
|
---|
65 | )
|
---|
66 | ),
|
---|
67 | 'SYMBOLS' => array(
|
---|
68 | ':', ';', '<', '>', '[', ']'
|
---|
69 | ),
|
---|
70 | 'CASE_SENSITIVE' => array(
|
---|
71 | GESHI_COMMENTS => false,
|
---|
72 | 1 => true,
|
---|
73 | 2 => false,
|
---|
74 | 3 => false,
|
---|
75 | 4 => true
|
---|
76 | ),
|
---|
77 | 'STYLES' => array(
|
---|
78 | 'KEYWORDS' => array(
|
---|
79 | 1 => 'color: #0000FF; font-weight: bold;',
|
---|
80 | 2 => 'color: #000000; font-weight: bold;',
|
---|
81 | 3 => 'color: #800000; font-weight: bold;',
|
---|
82 | 4 => 'font-weight: bold;',
|
---|
83 | ),
|
---|
84 | 'COMMENTS' => array(
|
---|
85 | ),
|
---|
86 | 'ESCAPE_CHAR' => array(
|
---|
87 | 0 => 'color: #000099; font-weight: bold;'
|
---|
88 | ),
|
---|
89 | 'BRACKETS' => array(
|
---|
90 | 0 => 'color: #66cc66;'
|
---|
91 | ),
|
---|
92 | 'STRINGS' => array(
|
---|
93 | 0 => 'color: #ff0000;'
|
---|
94 | ),
|
---|
95 | 'NUMBERS' => array(
|
---|
96 | 0 => 'color: #cc66cc;'
|
---|
97 | ),
|
---|
98 | 'METHODS' => array(
|
---|
99 | ),
|
---|
100 | 'SYMBOLS' => array(
|
---|
101 | 0 => 'color: #66cc66;'
|
---|
102 | ),
|
---|
103 | 'SCRIPT' => array(
|
---|
104 | 0 => 'color: #000040;',
|
---|
105 | ),
|
---|
106 | 'REGEXPS' => array(
|
---|
107 | 1 => 'color: #000000; font-weight: bold;',
|
---|
108 | 2 => 'color: #0000FF;',
|
---|
109 | 3 => 'color: #008000;',
|
---|
110 | 4 => 'color: #0000FF; font-weight: bold;',
|
---|
111 | 5 => 'font-weight: bold;',
|
---|
112 | 6 => 'color: #400080;'
|
---|
113 | )
|
---|
114 | ),
|
---|
115 | 'URLS' => array(
|
---|
116 | 1 => '',
|
---|
117 | 2 => '',
|
---|
118 | 3 => '',
|
---|
119 | 4 => ''
|
---|
120 | ),
|
---|
121 | 'OOLANG' => false,
|
---|
122 | 'OBJECT_SPLITTERS' => array(
|
---|
123 | ),
|
---|
124 | 'REGEXPS' => array(
|
---|
125 | // Non-Standard-Header
|
---|
126 | 1 => array(
|
---|
127 | GESHI_SEARCH => "(?<=\A\x20|\n)x-[a-z0-9\-]*(?=\s*:|\s*<)",
|
---|
128 | GESHI_REPLACE => "\\0",
|
---|
129 | GESHI_MODIFIERS => "smi",
|
---|
130 | GESHI_BEFORE => "",
|
---|
131 | GESHI_AFTER => ""
|
---|
132 | ),
|
---|
133 | //Email-Adresses or Mail-IDs
|
---|
134 | 2 => array(
|
---|
135 | GESHI_SEARCH => "\b[\w\.\-]+@\w+(?:(?:\.\w+)*\.\w{2,4})?",
|
---|
136 | GESHI_REPLACE => "\\0",
|
---|
137 | GESHI_MODIFIERS => "mi",
|
---|
138 | GESHI_BEFORE => "",
|
---|
139 | GESHI_AFTER => ""
|
---|
140 | ),
|
---|
141 | //Date values in RFC format
|
---|
142 | 3 => array(
|
---|
143 | GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" .
|
---|
144 | "(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" .
|
---|
145 | "\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?",
|
---|
146 | GESHI_REPLACE => "\\0",
|
---|
147 | GESHI_MODIFIERS => "mi",
|
---|
148 | GESHI_BEFORE => "",
|
---|
149 | GESHI_AFTER => ""
|
---|
150 | ),
|
---|
151 | //IP addresses
|
---|
152 | 4 => array(
|
---|
153 | GESHI_SEARCH => "(?<=\s)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\s)|".
|
---|
154 | "(?<=\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\])|".
|
---|
155 | "(?<==)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=<)",
|
---|
156 | GESHI_REPLACE => "\\0",
|
---|
157 | GESHI_MODIFIERS => "i",
|
---|
158 | GESHI_BEFORE => "",
|
---|
159 | GESHI_AFTER => ""
|
---|
160 | ),
|
---|
161 | //Field-Assignments
|
---|
162 | 5 => array(
|
---|
163 | GESHI_SEARCH => "(?<=\s)[A-Z0-9\-\.]+(?==(?:$|\s$|[^\s=]))",
|
---|
164 | GESHI_REPLACE => "\\0",
|
---|
165 | GESHI_MODIFIERS => "mi",
|
---|
166 | GESHI_BEFORE => "",
|
---|
167 | GESHI_AFTER => ""
|
---|
168 | ),
|
---|
169 | //MIME type
|
---|
170 | 6 => array(
|
---|
171 | GESHI_SEARCH => "(?<=\s)(?:audio|application|image|multipart|text|".
|
---|
172 | "video|x-[a-z0-9\-]+)\/[a-z0-9][a-z0-9\-]*(?=\s|<|$)",
|
---|
173 | GESHI_REPLACE => "\\0",
|
---|
174 | GESHI_MODIFIERS => "m",
|
---|
175 | GESHI_BEFORE => "",
|
---|
176 | GESHI_AFTER => ""
|
---|
177 | )
|
---|
178 | ),
|
---|
179 | 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
|
---|
180 | 'SCRIPT_DELIMITERS' => array(
|
---|
181 | 0 => "/(?P<start>^)[A-Z][a-zA-Z0-9\-]*\s*:\s*(?:.|(?=\n\s)\n)*(?P<end>$)/m"
|
---|
182 | ),
|
---|
183 | 'HIGHLIGHT_STRICT_BLOCK' => array(
|
---|
184 | 0 => true,
|
---|
185 | ),
|
---|
186 | 'TAB_WIDTH' => 4,
|
---|
187 | 'PARSER_CONTROL' => array(
|
---|
188 | 'KEYWORDS' => array(
|
---|
189 | 2 => array(
|
---|
190 | 'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
|
---|
191 | 'DISALLOWED_AFTER' => '(?=\s*:)',
|
---|
192 | ),
|
---|
193 | 3 => array(
|
---|
194 | 'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
|
---|
195 | 'DISALLOWED_AFTER' => '(?=\s*:)',
|
---|
196 | ),
|
---|
197 | 4 => array(
|
---|
198 | 'DISALLOWED_BEFORE' => '(?<=\s)',
|
---|
199 | 'DISALLOWED_AFTER' => '(?=\s|\b)',
|
---|
200 | )
|
---|
201 | ),
|
---|
202 | 'ENABLE_FLAGS' => array(
|
---|
203 | 'BRACKETS' => GESHI_NEVER,
|
---|
204 | 'COMMENTS' => GESHI_NEVER,
|
---|
205 | 'NUMBERS' => GESHI_NEVER
|
---|
206 | )
|
---|
207 | )
|
---|
208 | );
|
---|
209 |
|
---|
210 | ?> |
---|