websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 2... | Line 2... | |
/************************************************************************************* |
/************************************************************************************* | |
* email.php |
* email.php | |
* --------------- |
* --------------- | |
* Author: Benny Baumann (BenBE@geshi.org) |
* Author: Benny Baumann (BenBE@geshi.org) | |
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/) |
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/) | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2008/10/19 |
* Date Started: 2008/10/19 | |
* |
* | |
* Email (mbox \ eml \ RFC format) language file for GeSHi. |
* Email (mbox \ eml \ RFC format) language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 45... | Line 45... | |
'COMMENT_MULTI' => array(), |
'COMMENT_MULTI' => array(), | |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |
'QUOTEMARKS' => array('"'), |
'QUOTEMARKS' => array('"'), | |
'ESCAPE_CHAR' => '', |
'ESCAPE_CHAR' => '', | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
1 => array( | ||
'HTTP', 'SMTP', 'ASMTP', 'ESMTP' | ||
), | ||
2 => array( |
2 => array( | |
'content-type','content-transfer-encoding','content-disposition', |
'Content-Type','Content-Transfer-Encoding','Content-Disposition', | |
'delivered-to','dkim-signature','domainkey-signature','message-id', |
'Delivered-To','Dkim-Signature','Domainkey-Signature','In-Reply-To', | |
'mime-version','received','received-spf','resend-from','resend-to', |
'Message-Id','MIME-Version','Received','Received-SPF','References', | |
'return-path', |
'Resend-From','Resend-To','Return-Path' | |
), |
), | |
3 => array( |
3 => array( | |
'date','from','subject','to', |
'Date','From','Subject','To', | |
), |
), | |
4 => array( |
4 => array( | |
'by', 'from', 'id', 'with' |
'by', 'for', 'from', 'id', 'with' | |
) |
) | |
), |
), | |
'SYMBOLS' => array( |
'SYMBOLS' => array( | |
':', ';', '<', '>', '[', ']' |
':', ';', '<', '>', '[', ']' | |
), |
), | |
'CASE_SENSITIVE' => array( |
'CASE_SENSITIVE' => array( | |
GESHI_COMMENTS => false, |
GESHI_COMMENTS => false, | |
1 => true, | ||
2 => false, |
2 => false, | |
3 => false, |
3 => false, | |
4 => true |
4 => true | |
), |
), | |
'STYLES' => array( |
'STYLES' => array( | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
1 => 'color: #0000FF; font-weight: bold;', | ||
2 => 'color: #000000; font-weight: bold;', |
2 => 'color: #000000; font-weight: bold;', | |
3 => 'color: #800000; font-weight: bold;', |
3 => 'color: #800000; font-weight: bold;', | |
4 => 'font-weight: bold;', |
4 => 'font-weight: bold;', | |
), |
), | |
'COMMENTS' => array( |
'COMMENTS' => array( | |
Line 98... | Line 103... | |
0 => 'color: #000040;', |
0 => 'color: #000040;', | |
), |
), | |
'REGEXPS' => array( |
'REGEXPS' => array( | |
1 => 'color: #000000; font-weight: bold;', |
1 => 'color: #000000; font-weight: bold;', | |
2 => 'color: #0000FF;', |
2 => 'color: #0000FF;', | |
3 => 'color: #008000;' |
3 => 'color: #008000;', | |
4 => 'color: #0000FF; font-weight: bold;', | ||
5 => 'font-weight: bold;', | ||
6 => 'color: #400080;' | ||
) |
) | |
), |
), | |
'URLS' => array( |
'URLS' => array( | |
1 => '', | ||
2 => '', |
2 => '', | |
3 => '', |
3 => '', | |
4 => '' |
4 => '' | |
), |
), | |
'OOLANG' => false, |
'OOLANG' => false, | |
'OBJECT_SPLITTERS' => array( |
'OBJECT_SPLITTERS' => array( | |
), |
), | |
'REGEXPS' => array( |
'REGEXPS' => array( | |
// Non-Standard-Header |
// Non-Standard-Header | |
1 => array( |
1 => array( | |
GESHI_SEARCH => "(?<![:=])x-[a-z0-9\-]*(?=\s*:|\s*<)", |
GESHI_SEARCH => "(?<=\A\x20|\n)x-[a-z0-9\-]*(?=\s*:|\s*<)", | |
GESHI_REPLACE => "\\0", |
GESHI_REPLACE => "\\0", | |
GESHI_MODIFIERS => "smi", |
GESHI_MODIFIERS => "smi", | |
GESHI_BEFORE => "", |
GESHI_BEFORE => "", | |
GESHI_AFTER => "" |
GESHI_AFTER => "" | |
), |
), | |
Line 133... | Line 142... | |
GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" . |
GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" . | |
"(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" . |
"(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" . | |
"\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?", |
"\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?", | |
GESHI_REPLACE => "\\0", |
GESHI_REPLACE => "\\0", | |
GESHI_MODIFIERS => "mi", |
GESHI_MODIFIERS => "mi", | |
GESHI_BEFORE => "", | ||
GESHI_AFTER => "" | ||
), | ||
//IP addresses | ||
4 => array( | ||
GESHI_SEARCH => "(?<=\s)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\s)|". | ||
"(?<=\[)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=\])|". | ||
"(?<==)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(?=<)", | ||
GESHI_REPLACE => "\\0", | ||
GESHI_MODIFIERS => "i", | ||
GESHI_BEFORE => "", | ||
GESHI_AFTER => "" | ||
), | ||
//Field-Assignments | ||
5 => array( | ||
GESHI_SEARCH => "(?<=\s)[A-Z0-9\-]+(?==(?!\s|$))", | ||
GESHI_REPLACE => "\\0", | ||
GESHI_MODIFIERS => "mi", | ||
GESHI_BEFORE => "", | ||
GESHI_AFTER => "" | ||
), | ||
//MIME type | ||
6 => array( | ||
GESHI_SEARCH => "(?<=\s)(?:audio|application|image|multipart|text|". | ||
"video|x-[a-z0-9\-]+)\/[a-z0-9][a-z0-9\-]*(?=\s|<|$)", | ||
GESHI_REPLACE => "\\0", | ||
GESHI_MODIFIERS => "m", | ||
GESHI_BEFORE => "", |
GESHI_BEFORE => "", | |
GESHI_AFTER => "" |
GESHI_AFTER => "" | |
) |
) | |
), |
), | |
'STRICT_MODE_APPLIES' => GESHI_ALWAYS, |
'STRICT_MODE_APPLIES' => GESHI_ALWAYS, | |
Line 148... | Line 184... | |
), |
), | |
'TAB_WIDTH' => 4, |
'TAB_WIDTH' => 4, | |
'PARSER_CONTROL' => array( |
'PARSER_CONTROL' => array( | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
2 => array( |
2 => array( | |
'DISALLOWED_BEFORE' => '(?<![:=])', |
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)', | |
'DISALLOWED_AFTER' => '(?=\s*:)', |
'DISALLOWED_AFTER' => '(?=\s*:)', | |
), |
), | |
3 => array( |
3 => array( | |
'DISALLOWED_BEFORE' => '(?<![:=])', |
'DISALLOWED_BEFORE' => '(?<=\A\x20|\n)', | |
'DISALLOWED_AFTER' => '(?=\s*:)', |
'DISALLOWED_AFTER' => '(?=\s*:)', | |
), |
), | |
4 => array( |
4 => array( | |
'DISALLOWED_BEFORE' => '(?<=\s)', |
'DISALLOWED_BEFORE' => '(?<=\s)', | |
'DISALLOWED_AFTER' => '(?=\s|\b)', |
'DISALLOWED_AFTER' => '(?=\s|\b)', |