0
|
1 |
<?php
|
|
2 |
/*************************************************************************************
|
|
3 |
* smarty.php
|
|
4 |
* ----------
|
|
5 |
* Author: Alan Juden (alan@judenware.org)
|
|
6 |
* Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/)
|
|
7 |
* Release Version: 1.0.7.20
|
|
8 |
* Date Started: 2004/07/10
|
|
9 |
*
|
|
10 |
* Smarty template language file for GeSHi.
|
|
11 |
*
|
|
12 |
* CHANGES
|
|
13 |
* -------
|
|
14 |
* 2004/11/27 (1.0.0)
|
|
15 |
* - Initial Release
|
|
16 |
*
|
|
17 |
* TODO
|
|
18 |
* ----
|
|
19 |
*
|
|
20 |
*************************************************************************************
|
|
21 |
*
|
|
22 |
* This file is part of GeSHi.
|
|
23 |
*
|
|
24 |
* GeSHi is free software; you can redistribute it and/or modify
|
|
25 |
* it under the terms of the GNU General Public License as published by
|
|
26 |
* the Free Software Foundation; either version 2 of the License, or
|
|
27 |
* (at your option) any later version.
|
|
28 |
*
|
|
29 |
* GeSHi is distributed in the hope that it will be useful,
|
|
30 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
31 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
32 |
* GNU General Public License for more details.
|
|
33 |
*
|
|
34 |
* You should have received a copy of the GNU General Public License
|
|
35 |
* along with GeSHi; if not, write to the Free Software
|
|
36 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
37 |
*
|
|
38 |
************************************************************************************/
|
|
39 |
|
|
40 |
$language_data = array (
|
|
41 |
'LANG_NAME' => 'Smarty',
|
|
42 |
'COMMENT_SINGLE' => array(),
|
|
43 |
'COMMENT_MULTI' => array('{*' => '*}'),
|
|
44 |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
45 |
'QUOTEMARKS' => array("'", '"'),
|
|
46 |
'ESCAPE_CHAR' => '\\',
|
|
47 |
'KEYWORDS' => array(
|
|
48 |
1 => array(
|
|
49 |
'$smarty', 'now', 'const', 'capture', 'config', 'section', 'foreach', 'template', 'version', 'ldelim', 'rdelim',
|
|
50 |
'config_load', 'foreachelse', 'include', 'include_php', 'insert', 'if', 'elseif', 'else', 'php',
|
|
51 |
'sectionelse', 'clear_all_cache', 'clear_cache', 'is_cached',
|
|
52 |
),
|
|
53 |
2 => array(
|
|
54 |
'capitalize', 'count_characters', 'cat', 'count_paragraphs', 'count_sentences', 'count_words', 'date_format',
|
|
55 |
'default', 'escape', 'indent', 'lower', 'nl2br', 'regex_replace', 'replace', 'spacify', 'string_format',
|
|
56 |
'strip', 'strip_tags', 'truncate', 'upper', 'wordwrap'
|
|
57 |
),
|
|
58 |
3 => array(
|
|
59 |
'assign', 'counter', 'cycle', 'debug', 'eval', 'fetch', 'html_checkboxes', 'html_image', 'html_options',
|
|
60 |
'html_radios', 'html_select_date', 'html_select_time', 'html_table', 'math', 'mailto', 'popup_init',
|
|
61 |
'popup', 'textformat'
|
|
62 |
),
|
|
63 |
4 => array(
|
|
64 |
'$template_dir', '$compile_dir', '$config_dir', '$plugins_dir', '$debugging', '$debug_tpl',
|
|
65 |
'$debugging_ctrl', '$autoload_filters', '$compile_check', '$force_compile', '$caching', '$cache_dir',
|
|
66 |
'$cache_lifetime', '$cache_handler_func', '$cache_modified_check', '$config_overwrite',
|
|
67 |
'$config_booleanize', '$config_read_hidden', '$config_fix_newlines', '$default_template_handler_func',
|
|
68 |
'$php_handling', '$security', '$secure_dir', '$security_settings', '$trusted_dir', '$left_delimiter',
|
|
69 |
'$right_delimiter', '$compiler_class', '$request_vars_order', '$request_use_auto_globals',
|
|
70 |
'$error_reporting', '$compile_id', '$use_sub_dirs', '$default_modifiers', '$default_resource_type'
|
|
71 |
),
|
|
72 |
5 => array(
|
|
73 |
'append', 'append_by_ref', 'assign', 'assign_by_ref', 'clear_all_assign', 'clear_all_cache',
|
|
74 |
'clear_assign', 'clear_cache', 'clear_compiled_tpl', 'clear_config', 'config_load', 'display',
|
|
75 |
'fetch', 'get_config_vars', 'get_registered_object', 'get_template_vars', 'is_cached',
|
|
76 |
'load_filter', 'register_block', 'register_compiler_function', 'register_function',
|
|
77 |
'register_modifier', 'register_object', 'register_outputfilter', 'register_postfilter',
|
|
78 |
'register_prefilter', 'register_resource', 'trigger_error', 'template_exists', 'unregister_block',
|
|
79 |
'unregister_compiler_function', 'unregister_function', 'unregister_modifier', 'unregister_object',
|
|
80 |
'unregister_outputfilter', 'unregister_postfilter', 'unregister_prefilter', 'unregister_resource'
|
|
81 |
),
|
|
82 |
6 => array(
|
|
83 |
'name', 'assign', 'file', 'scope', 'global', 'key', 'once', 'script',
|
|
84 |
'loop', 'start', 'step', 'max', 'show', 'values', 'value', 'from', 'item'
|
|
85 |
),
|
|
86 |
7 => array(
|
|
87 |
'eq', 'neq', 'ne', 'lte', 'gte', 'ge', 'le', 'not', 'mod'
|
|
88 |
),
|
|
89 |
),
|
|
90 |
'SYMBOLS' => array(
|
|
91 |
'/', '=', '==', '!=', '>', '<', '>=', '<=', '!', '%'
|
|
92 |
),
|
|
93 |
'CASE_SENSITIVE' => array(
|
|
94 |
GESHI_COMMENTS => false,
|
|
95 |
1 => false,
|
|
96 |
2 => false,
|
|
97 |
3 => false,
|
|
98 |
4 => false,
|
|
99 |
5 => false,
|
|
100 |
6 => false,
|
|
101 |
7 => false,
|
|
102 |
),
|
|
103 |
'STYLES' => array(
|
|
104 |
'KEYWORDS' => array(
|
|
105 |
1 => 'color: #0600FF;', //Functions
|
|
106 |
2 => 'color: #008000;', //Modifiers
|
|
107 |
3 => 'color: #0600FF;', //Custom Functions
|
|
108 |
4 => 'color: #804040;', //Variables
|
|
109 |
5 => 'color: #008000;', //Methods
|
|
110 |
6 => 'color: #6A0A0A;', //Attributes
|
|
111 |
7 => 'color: #D36900;' //Text-based symbols
|
|
112 |
),
|
|
113 |
'COMMENTS' => array(
|
|
114 |
'MULTI' => 'color: #008080; font-style: italic;'
|
|
115 |
),
|
|
116 |
'ESCAPE_CHAR' => array(
|
|
117 |
0 => 'color: #000099; font-weight: bold;'
|
|
118 |
),
|
|
119 |
'BRACKETS' => array(
|
|
120 |
0 => 'color: #D36900;'
|
|
121 |
),
|
|
122 |
'STRINGS' => array(
|
|
123 |
0 => 'color: #ff0000;'
|
|
124 |
),
|
|
125 |
'NUMBERS' => array(
|
|
126 |
0 => 'color: #cc66cc;'
|
|
127 |
),
|
|
128 |
'METHODS' => array(
|
|
129 |
1 => 'color: #006600;'
|
|
130 |
),
|
|
131 |
'SYMBOLS' => array(
|
|
132 |
0 => 'color: #D36900;'
|
|
133 |
),
|
|
134 |
'SCRIPT' => array(
|
|
135 |
0 => ''
|
|
136 |
),
|
|
137 |
'REGEXPS' => array(
|
|
138 |
)
|
|
139 |
),
|
|
140 |
'URLS' => array(
|
|
141 |
1 => 'http://smarty.php.net/{FNAME}',
|
|
142 |
2 => 'http://smarty.php.net/{FNAME}',
|
|
143 |
3 => 'http://smarty.php.net/{FNAME}',
|
|
144 |
4 => 'http://smarty.php.net/{FNAME}',
|
|
145 |
5 => 'http://smarty.php.net/{FNAME}',
|
|
146 |
6 => '',
|
|
147 |
7 => 'http://smarty.php.net/{FNAME}'
|
|
148 |
),
|
|
149 |
'OOLANG' => true,
|
|
150 |
'OBJECT_SPLITTERS' => array(
|
|
151 |
1 => '.'
|
|
152 |
),
|
|
153 |
'REGEXPS' => array(
|
|
154 |
),
|
|
155 |
'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
|
|
156 |
'SCRIPT_DELIMITERS' => array(
|
|
157 |
0 => array(
|
|
158 |
'{' => '}'
|
|
159 |
)
|
|
160 |
),
|
|
161 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
162 |
0 => true
|
|
163 |
)
|
|
164 |
);
|
|
165 |
|
|
166 |
?>
|