2 /*************************************************************************************
5 * Author: Benny Baumann (BenBE@geshi.org)
6 * Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
7 * Release Version: 1.0.8.3
8 * Date Started: 2008/10/19
10 * Email (mbox \ eml \ RFC format) language file for GeSHi.
14 * 2008/10/19 (1.0.8.1)
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
22 *************************************************************************************
24 * This file is part of GeSHi.
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.
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.
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
40 ************************************************************************************/
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('"'),
51 'HTTP', 'SMTP', 'ASMTP', 'ESMTP'
54 'Content-Type','Content-Transfer-Encoding','Content-Disposition',
55 'Delivered-To','Dkim-Signature','Domainkey-Signature','In-Reply-To',
56 'Message-Id','MIME-Version','Received','Received-SPF','References',
57 'Resend-From','Resend-To','Return-Path'
60 'Date','From','Subject','To',
63 'by', 'for', 'from', 'id', 'with'
67 ':', ';', '<', '>', '[', ']'
69 'CASE_SENSITIVE' => array(
70 GESHI_COMMENTS => false,
78 1 => 'color: #0000FF; font-weight: bold;',
79 2 => 'color: #000000; font-weight: bold;',
80 3 => 'color: #800000; font-weight: bold;',
81 4 => 'font-weight: bold;',
85 'ESCAPE_CHAR' => array(
86 0 => 'color: #000099; font-weight: bold;'
89 0 => 'color: #66cc66;'
92 0 => 'color: #ff0000;'
95 0 => 'color: #cc66cc;'
100 0 => 'color: #66cc66;'
103 0 => 'color: #000040;',
106 1 => 'color: #000000; font-weight: bold;',
107 2 => 'color: #0000FF;',
108 3 => 'color: #008000;',
109 4 => 'color: #0000FF; font-weight: bold;',
110 5 => 'font-weight: bold;',
111 6 => 'color: #400080;'
121 'OBJECT_SPLITTERS' => array(
124 // Non-Standard-Header
126 GESHI_SEARCH => "(?<=\A\x20|\n)x-[a-z0-9\-]*(?=\s*:|\s*<)",
127 GESHI_REPLACE => "\\0",
128 GESHI_MODIFIERS => "smi",
132 //Email-Adresses or Mail-IDs
134 GESHI_SEARCH => "\b[\w\.]+@\w+(?:(?:\.\w+)*\.\w{2,4})?",
135 GESHI_REPLACE => "\\0",
136 GESHI_MODIFIERS => "mi",
140 //Date values in RFC format
142 GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" .
143 "(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" .
144 "\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?",
145 GESHI_REPLACE => "\\0",
146 GESHI_MODIFIERS => "mi",
152 GESHI_SEARCH => "(?<=\s)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\s)|".
153 "(?<=\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\])|".
154 "(?<==)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=<)",
155 GESHI_REPLACE => "\\0",
156 GESHI_MODIFIERS => "i",
162 GESHI_SEARCH => "(?<=\s)[A-Z0-9\-]+(?==(?!\s|$))",
163 GESHI_REPLACE => "\\0",
164 GESHI_MODIFIERS => "mi",
170 GESHI_SEARCH => "(?<=\s)(?:audio|application|image|multipart|text|".
171 "video|x-[a-z0-9\-]+)\/[a-z0-9][a-z0-9\-]*(?=\s|<|$)",
172 GESHI_REPLACE => "\\0",
173 GESHI_MODIFIERS => "m",
178 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
179 'SCRIPT_DELIMITERS' => array(
180 0 => "/(^)[A-Z][a-zA-Z0-9\-]*\s*:\s*(?:.|(?=\n\s)\n)*($)/m"
182 'HIGHLIGHT_STRICT_BLOCK' => array(
186 'PARSER_CONTROL' => array(
189 'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
190 'DISALLOWED_AFTER' => '(?=\s*:)',
193 'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)',
194 'DISALLOWED_AFTER' => '(?=\s*:)',
197 'DISALLOWED_BEFORE' => '(?<=\s)',
198 'DISALLOWED_AFTER' => '(?=\s|\b)',
201 'ENABLE_FLAGS' => array(
202 'BRACKETS' => GESHI_NEVER,
203 'COMMENTS' => GESHI_NEVER,
204 'NUMBERS' => GESHI_NEVER