ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
freeswitch.php
Go to the documentation of this file.
1<?php
2/*************************************************************************************
3 * freeswitch.php
4 * --------
5 * Author: James Rose (james.gs@stubbornroses.com)
6 * Copyright: (c) 2006 Christian Lescuyer http://xtian.goelette.info
7 * Release Version: 1.0.9.0
8 * Date Started: 2011/11/18
9 *
10 * FreeSWITCH language file for GeSHi.
11 *
12 * This file is based on robots.php
13 *
14 * 2011/11/18 (1.0.0)
15 * - First Release
16 *
17 *************************************************************************************
18 *
19 * This file is part of GeSHi.
20 *
21 * GeSHi is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2 of the License, or
24 * (at your option) any later version.
25 *
26 * GeSHi is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30 *
31 * You should have received a copy of the GNU General Public License
32 * along with GeSHi; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 *
35 ************************************************************************************/
36
38 'LANG_NAME' => 'FreeSWITCH',
39 'COMMENT_SINGLE' => array(1 => '#'),
40 'COMMENT_MULTI' => array(),
41 'COMMENT_REGEXP' => array(1 => "/^Comment:.*?$/m"),
42 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
43 'QUOTEMARKS' => array(),
44 'ESCAPE_CHAR' => '',
45 'KEYWORDS' => array(
46// 1 => array(
47// 'Disallow', 'Request-rate', 'Robot-version',
48// 'Sitemap', 'User-agent', 'Visit-time'
49// )
50 ),
51 'SYMBOLS' => array(
52// ':'
53 ),
54 'CASE_SENSITIVE' => array(
55 GESHI_COMMENTS => false
56 ),
57
58//order is important. regexes will overwrite most things....
59 'STYLES' => array(
60 'KEYWORDS' => array(
61// 1 => 'color: #FF0000; font-weight: bold;',//red
62 ),
63 'COMMENTS' => array(
64 1 => 'color: #808080; font-style: italic;',
65 ),
66 'ESCAPE_CHAR' => array(
67 0 => 'color: #000099; font-weight: bold;'
68 ),
69 'BRACKETS' => array(
70// 0 => 'color: #66cc66;'
71 ),
72 'STRINGS' => array(
73// 0 => 'color: #ff0000;'
74 ),
75 'NUMBERS' => array(
76// 0 => 'color: #cc66cc;'
77 ),
78 'METHODS' => array(
79 ),
80 'SYMBOLS' => array(
81// 0 => 'color: #66cc66;'
82 ),
83 'REGEXPS' => array(
84 0 => 'color: firebrick; font-weight: bold;',
85 1 => 'color: cornflowerblue; font-weight: bold;',
86 2 => 'color: goldenrod; font-weight: bold;',
87 3 => 'color: green; font-weight: bold;',
88 4 => 'color: dimgrey; font-style: italic;',
89 5 => 'color: green; font-weight: bold;',
90 6 => 'color: firebrick; font-weight: bold;',
91 7 => 'color: indigo; font-weight: italic;'
92 ),
93 'SCRIPT' => array(
94 )
95 ),
96 'URLS' => array(
97// 1 => 'http://www.robotstxt.org/wc/norobots.html'
98 ),
99 'OOLANG' => false,
100 'OBJECT_SPLITTERS' => array(
101 ),
102 'REGEXPS' => array(
103 0 => array(
104 GESHI_SEARCH => '(^.*ERROR.*)',
105 GESHI_REPLACE => '\\1',
106 GESHI_MODIFIERS => 'im',
107 GESHI_BEFORE => '',
108 GESHI_AFTER => ''
109 ),
110 1 => array(
111 GESHI_SEARCH => '(^.*NOTICE.*)',
112 GESHI_REPLACE => '\\1',
113 GESHI_MODIFIERS => 'im',
114 GESHI_BEFORE => '',
115 GESHI_AFTER => ''
116 ),
117 2 => array(
118 GESHI_SEARCH => '(^.*DEBUG.*)',
119 GESHI_REPLACE => '\\1',
120 GESHI_MODIFIERS => 'm',
121 GESHI_BEFORE => '',
122 GESHI_AFTER => ''
123 ),
124 3 => array(
125 GESHI_SEARCH => '(^.*INFO.*|.*info\‍(.*|^Channel.*|^Caller.*|^variable.*)',
126 GESHI_REPLACE => '\\1',
127 GESHI_MODIFIERS => 'm',
128 GESHI_BEFORE => '',
129 GESHI_AFTER => ''
130 ),
131 4 => array(
132 GESHI_SEARCH => '(^Dialplan.*)',
133 GESHI_REPLACE => '\\1',
134 GESHI_MODIFIERS => 'im',
135 GESHI_BEFORE => '',
136 GESHI_AFTER => ''
137 ),
138 5 => array(
139 GESHI_SEARCH => '(Regex\ \‍(PASS\‍))',
140 GESHI_REPLACE => '\\1',
141 GESHI_MODIFIERS => '',
142 GESHI_BEFORE => '',
143 GESHI_AFTER => ''
144 ),
145 6 => array(
146 GESHI_SEARCH => '(Regex\ \‍(FAIL\‍))',
147 GESHI_REPLACE => '\\1',
148 GESHI_MODIFIERS => '',
149 GESHI_BEFORE => '',
150 GESHI_AFTER => ''
151 ),
152 7 => array(
153 GESHI_SEARCH => '(\d{7,15})',
154 GESHI_REPLACE => '\\1',
155 GESHI_MODIFIERS => '',
156 GESHI_BEFORE => '',
157 GESHI_AFTER => ''
158 )
159 ),
160
161 'STRICT_MODE_APPLIES' => GESHI_NEVER,
162 'SCRIPT_DELIMITERS' => array(
163 ),
164 'HIGHLIGHT_STRICT_BLOCK' => array(
165 )
166);
An exception for terminatinating execution or to throw for unit testing.
$language_data
Definition: freeswitch.php:37
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
Definition: geshi.php:94
const GESHI_BEFORE
The key of the regex array defining what bracket group in a matched search to put before the replacem...
Definition: geshi.php:140
const GESHI_SEARCH
The key of the regex array defining what to search for.
Definition: geshi.php:132
const GESHI_AFTER
The key of the regex array defining what bracket group in a matched search to put after the replaceme...
Definition: geshi.php:143
const GESHI_REPLACE
The key of the regex array defining what bracket group in a matched search to use as a replacement.
Definition: geshi.php:135
const GESHI_COMMENTS
Used in language files to mark comments.
Definition: geshi.php:149
const GESHI_NEVER
#+ @access private
Definition: geshi.php:123
const GESHI_MODIFIERS
The key of the regex array defining any modifiers to the regular expression.
Definition: geshi.php:137