]>
src.bluestatic.org Git - viewsvn.git/blob - smarty.php
2cb39b98f6e4ce3949cf0ba9a91493738ecc3d24
2 /*************************************************************************************
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.5
8 * CVS Revision Version: $Revision: 1.6 $
9 * Date Started: 2004/07/10
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * Smarty template language file for GeSHi.
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' => 'Smarty',
44 'COMMENT_SINGLE' => array(),
45 'COMMENT_MULTI' => array('{*' => '*}'),
46 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
47 'QUOTEMARKS' => array("'", '"'),
48 'ESCAPE_CHAR' => '\\',
51 '$smarty', 'now
', 'const', 'capture
', 'config
', 'section
', 'foreach', 'template
', 'version
', 'ldelim
', 'rdelim
',
52 'config_load
', 'foreachelse
', 'include', 'include_php
', 'insert
', 'if', 'elseif', 'else', 'php
',
53 'sectionelse
', 'clear_all_cache
', 'clear_cache
', 'is_cached
', 'from
', 'item
'
56 'capitalize
', 'count_characters
', 'cat
', 'count_paragraphs
', 'count_sentences
', 'count_words
', 'date_format
',
57 'default', 'escape
', 'indent
', 'lower
', 'nl2br
', 'regex_replace
', 'replace
', 'spacify
', 'string_format
',
58 'strip
', 'strip_tags
', 'truncate
', 'upper
', 'wordwrap
'
61 'assign
', 'counter
', 'cycle
', 'debug
', 'eval', 'fetch
', 'html_checkboxes
', 'html_image
', 'html_options
',
62 'html_radios
', 'html_select_date
', 'html_select_time
', 'html_table
', 'math
', 'mailto
', 'popup_init
',
66 '$template_dir', '$compile_dir', '$config_dir', '$plugins_dir', '$debugging', '$debug_tpl',
67 '$debugging_ctrl', '$autoload_filters', '$compile_check', '$force_compile', '$caching', '$cache_dir',
68 '$cache_lifetime', '$cache_handler_func', '$cache_modified_check', '$config_overwrite',
69 '$config_booleanize', '$config_read_hidden', '$config_fix_newlines', '$default_template_handler_func',
70 '$php_handling', '$security', '$secure_dir', '$security_settings', '$trusted_dir', '$left_delimiter',
71 '$right_delimiter', '$compiler_class', '$request_vars_order', '$request_use_auto_globals',
72 '$error_reporting', '$compile_id', '$use_sub_dirs', '$default_modifiers', '$default_resource_type'
75 'append', 'append_by_ref', 'assign', 'assign_by_ref', 'clear_all_assign', 'clear_all_cache',
76 'clear_assign', 'clear_cache', 'clear_compiled_tpl', 'clear_config', 'config_load', 'display',
77 'fetch', 'get_config_vars', 'get_registered_object', 'get_template_vars', 'is_cached',
78 'load_filter', 'register_block', 'register_compiler_function', 'register_function',
79 'register_modifier', 'register_object', 'register_outputfilter', 'register_postfilter',
80 'register_prefilter', 'register_resource', 'trigger_error', 'template_exists', 'unregister_block',
81 'unregister_compiler_function', 'unregister_function', 'unregister_modifier', 'unregister_object',
82 'unregister_outputfilter', 'unregister_postfilter', 'unregister_prefilter', 'unregister_resource'
85 'name', 'assign', 'file', 'scope', 'global', 'key', 'once', 'script',
86 'loop', 'start', 'step', 'max', 'show', 'values', 'value'
89 'eq', 'neq', 'ne', 'lte', 'gte', 'ge', 'le', 'not', 'mod'
93 '/', '=', '==', '!=', '>', '<', '>=', '<=', '!', '%'
95 'CASE_SENSITIVE' => array(
96 GESHI_COMMENTS
=> false,
107 1 => 'color: #0600FF;', //Functions
108 2 => 'color: #008000;', //Modifiers
109 3 => 'color: #0600FF;', //Custom Functions
110 4 => 'color: #804040;', //Variables
111 5 => 'color: #008000;', //Methods
112 6 => 'color: #6A0A0A;', //Attributes
113 7 => 'color: #D36900;' //Text-based symbols
116 'MULTI' => 'color: #008080; font-style: italic;'
118 'ESCAPE_CHAR' => array(
119 0 => 'color: #000099; font-weight: bold;'
122 0 => 'color: #D36900;'
125 0 => 'color: #ff0000;'
128 0 => 'color: #cc66cc;'
131 1 => 'color: #006600;'
134 0 => 'color: #D36900;'
142 1 => 'http://smarty.php.net/{FNAME}',
143 2 => 'http://smarty.php.net/{FNAME}',
144 3 => 'http://smarty.php.net/{FNAME}',
145 4 => 'http://smarty.php.net/{FNAME}',
146 5 => 'http://smarty.php.net/{FNAME}',
148 7 => 'http://smarty.php.net/{FNAME}'
151 'OBJECT_SPLITTERS' => array(
156 'STRICT_MODE_APPLIES' => GESHI_ALWAYS
,
157 'SCRIPT_DELIMITERS' => array(
162 'HIGHLIGHT_STRICT_BLOCK' => array(