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.15
8 * CVS Revision Version: $Revision: 1.15.2.5 $
9 * Date Started: 2004/07/10
10 * Last Modified: $Date: 2006/09/23 02:05:48 $
11 *
12 * Smarty template language file for GeSHi.
13 *
14 * CHANGES
15 * -------
16 * 2004/11/27 (1.0.0)
17 *  -  Initial Release
18 *
19 * TODO
20 * ----
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' => 'Smarty',
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		1 => array(
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',
54			),
55		2 => array(
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'
59			),
60		3 => array(
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',
63			'popup', 'textformat'
64			),
65		4 => array(
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'
73			),
74		5 => array(
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'
83			),
84		6 => array(
85			'name', 'assign', 'file', 'scope', 'global', 'key', 'once', 'script',
86			'loop', 'start', 'step', 'max', 'show', 'values', 'value', 'from', 'item'
87			),
88		7 => array(
89			'eq', 'neq', 'ne', 'lte', 'gte', 'ge', 'le', 'not', 'mod'
90			),
91		),
92	'SYMBOLS' => array(
93		'/', '=', '==', '!=', '>', '<', '>=', '<=', '!', '%'
94		),
95	'CASE_SENSITIVE' => array(
96		GESHI_COMMENTS => false,
97		1 => false,
98		2 => false,
99		3 => false,
100		4 => false,
101		5 => false,
102		6 => false,
103		7 => false,
104		),
105	'STYLES' => array(
106		'KEYWORDS' => array(
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
114			),
115		'COMMENTS' => array(
116			'MULTI' => 'color: #008080; font-style: italic;'
117			),
118		'ESCAPE_CHAR' => array(
119			0 => 'color: #000099; font-weight: bold;'
120			),
121		'BRACKETS' => array(
122			0 => 'color: #D36900;'
123			),
124		'STRINGS' => array(
125			0 => 'color: #ff0000;'
126			),
127		'NUMBERS' => array(
128			0 => 'color: #cc66cc;'
129			),
130		'METHODS' => array(
131			1 => 'color: #006600;'
132			),
133		'SYMBOLS' => array(
134			0 => 'color: #D36900;'
135			),
136		'SCRIPT' => array(
137            0 => ''
138			),
139		'REGEXPS' => array(
140			)
141		),
142	'URLS' => array(
143		1 => 'http://smarty.php.net/{FNAME}',
144		2 => 'http://smarty.php.net/{FNAME}',
145		3 => 'http://smarty.php.net/{FNAME}',
146		4 => 'http://smarty.php.net/{FNAME}',
147		5 => 'http://smarty.php.net/{FNAME}',
148		6 => '',
149		7 => 'http://smarty.php.net/{FNAME}'
150		),
151	'OOLANG' => true,
152	'OBJECT_SPLITTERS' => array(
153		1 => '.'
154		),
155	'REGEXPS' => array(
156		),
157	'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
158	'SCRIPT_DELIMITERS' => array(
159		0 => array(
160			'{' => '}'
161			)
162	),
163	'HIGHLIGHT_STRICT_BLOCK' => array(
164		0 => true
165		)
166);
167
168?>
169