jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [email.php] - Blame information for rev 1

 

Line No. Rev Author Line
11simandl<?php
2/*************************************************************************************
3 * email.php
4 * ---------------
5 * Author: Benny Baumann (BenBE@geshi.org)
6 * Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/)
7 * Release Version: 1.0.8.1
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 2 => array(
51 'content-type','content-transfer-encoding','content-disposition',
52 'delivered-to','dkim-signature','domainkey-signature','message-id',
53 'mime-version','received','received-spf','resend-from','resend-to',
54 'return-path',
55 ),
56 3 => array(
57 'date','from','subject','to',
58 ),
59 4 => array(
60 'by', 'from', 'id', 'with'
61 )
62 ),
63 'SYMBOLS' => array(
64 ':', ';', '<', '>', '[', ']'
65 ),
66 'CASE_SENSITIVE' => array(
67 GESHI_COMMENTS => false,
68 2 => false,
69 3 => false,
70 4 => true
71 ),
72 'STYLES' => array(
73 'KEYWORDS' => array(
74 2 => 'color: #000000; font-weight: bold;',
75 3 => 'color: #800000; font-weight: bold;',
76 4 => 'font-weight: bold;',
77 ),
78 'COMMENTS' => array(
79 ),
80 'ESCAPE_CHAR' => array(
81 
82 ),
83 'BRACKETS' => array(
84 
85 ),
86 'STRINGS' => array(
87 
88 ),
89 'NUMBERS' => array(
90 
91 ),
92 'METHODS' => array(
93 ),
94 'SYMBOLS' => array(
95 
96 ),
97 'SCRIPT' => array(
98 
99 ),
100 'REGEXPS' => array(
101 1 => 'color: #000000; font-weight: bold;',
102 2 => 'color: #0000FF;',
103 3 => 'color: #008000;'
104 )
105 ),
106 'URLS' => array(
107 2 => '',
108 3 => '',
109 4 => ''
110 ),
111 'OOLANG' => false,
112 'OBJECT_SPLITTERS' => array(
113 ),
114 'REGEXPS' => array(
115 // Non-Standard-Header
116 1 => array(
117 GESHI_SEARCH => "(?<![:=])x-[a-z0-9\-]*(?=\s*:|\s*<)",
118 GESHI_REPLACE => "\\0",
119 GESHI_MODIFIERS => "smi",
120 GESHI_BEFORE => "",
121 GESHI_AFTER => ""
122 ),
123 //Email-Adresses or Mail-IDs
124 2 => array(
125 GESHI_SEARCH => "\b[\w\.]+@\w+(?:(?:\.\w+)*\.\w{2,4})?",
126 GESHI_REPLACE => "\\0",
127 GESHI_MODIFIERS => "mi",
128 GESHI_BEFORE => "",
129 GESHI_AFTER => ""
130 ),
131 //Date values in RFC format
132 3 => array(
133 GESHI_SEARCH => "\b(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s+\d\d?\s+" .
134 "(?:Jan|Feb|Mar|apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+" .
135 "\d{4}\s+\d\d?:\d\d:\d\d\s+[+\-]\d{4}(?:\s+\(\w+\))?",
136 GESHI_REPLACE => "\\0",
137 GESHI_MODIFIERS => "mi",
138 GESHI_BEFORE => "",
139 GESHI_AFTER => ""
140 )
141 ),
142 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
143 'SCRIPT_DELIMITERS' => array(
144 
145 ),
146 'HIGHLIGHT_STRICT_BLOCK' => array(
147 
148 ),
149 'TAB_WIDTH' => 4,
150 'PARSER_CONTROL' => array(
151 'KEYWORDS' => array(
152 2 => array(
153 'DISALLOWED_BEFORE' => '(?<![:=])',
154 'DISALLOWED_AFTER' => '(?=\s*:)',
155 ),
156 3 => array(
157 'DISALLOWED_BEFORE' => '(?<![:=])',
158 'DISALLOWED_AFTER' => '(?=\s*:)',
159 ),
160 4 => array(
161 'DISALLOWED_BEFORE' => '(?<=\s)',
162 'DISALLOWED_AFTER' => '(?=\s|\b)',
163 )
164 ),
165 'ENABLE_FLAGS' => array(
166 'BRACKETS' => GESHI_NEVER,
167 'COMMENTS' => GESHI_NEVER,
168 'NUMBERS' => GESHI_NEVER
169 )
170 )
171);
172 
173?>

Powered by WebSVN 2.2.1