A tumblelog CMS built on AJAX, PHP and MySQL.

smarty.php 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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.21
  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. $language_data = array (
  40. 'LANG_NAME' => 'Smarty',
  41. 'COMMENT_SINGLE' => array(),
  42. 'COMMENT_MULTI' => array('{*' => '*}'),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 1 => array(
  48. '$smarty', 'now', 'const', 'capture', 'config', 'section', 'foreach', 'template', 'version', 'ldelim', 'rdelim',
  49. 'config_load', 'foreachelse', 'include', 'include_php', 'insert', 'if', 'elseif', 'else', 'php',
  50. 'sectionelse', 'clear_all_cache', 'clear_cache', 'is_cached',
  51. ),
  52. 2 => array(
  53. 'capitalize', 'count_characters', 'cat', 'count_paragraphs', 'count_sentences', 'count_words', 'date_format',
  54. 'default', 'escape', 'indent', 'lower', 'nl2br', 'regex_replace', 'replace', 'spacify', 'string_format',
  55. 'strip', 'strip_tags', 'truncate', 'upper', 'wordwrap'
  56. ),
  57. 3 => array(
  58. 'assign', 'counter', 'cycle', 'debug', 'eval', 'fetch', 'html_checkboxes', 'html_image', 'html_options',
  59. 'html_radios', 'html_select_date', 'html_select_time', 'html_table', 'math', 'mailto', 'popup_init',
  60. 'popup', 'textformat'
  61. ),
  62. 4 => array(
  63. '$template_dir', '$compile_dir', '$config_dir', '$plugins_dir', '$debugging', '$debug_tpl',
  64. '$debugging_ctrl', '$autoload_filters', '$compile_check', '$force_compile', '$caching', '$cache_dir',
  65. '$cache_lifetime', '$cache_handler_func', '$cache_modified_check', '$config_overwrite',
  66. '$config_booleanize', '$config_read_hidden', '$config_fix_newlines', '$default_template_handler_func',
  67. '$php_handling', '$security', '$secure_dir', '$security_settings', '$trusted_dir', '$left_delimiter',
  68. '$right_delimiter', '$compiler_class', '$request_vars_order', '$request_use_auto_globals',
  69. '$error_reporting', '$compile_id', '$use_sub_dirs', '$default_modifiers', '$default_resource_type'
  70. ),
  71. 5 => array(
  72. 'append', 'append_by_ref', 'assign', 'assign_by_ref', 'clear_all_assign', 'clear_all_cache',
  73. 'clear_assign', 'clear_cache', 'clear_compiled_tpl', 'clear_config', 'config_load', 'display',
  74. 'fetch', 'get_config_vars', 'get_registered_object', 'get_template_vars', 'is_cached',
  75. 'load_filter', 'register_block', 'register_compiler_function', 'register_function',
  76. 'register_modifier', 'register_object', 'register_outputfilter', 'register_postfilter',
  77. 'register_prefilter', 'register_resource', 'trigger_error', 'template_exists', 'unregister_block',
  78. 'unregister_compiler_function', 'unregister_function', 'unregister_modifier', 'unregister_object',
  79. 'unregister_outputfilter', 'unregister_postfilter', 'unregister_prefilter', 'unregister_resource'
  80. ),
  81. 6 => array(
  82. 'name', 'assign', 'file', 'scope', 'global', 'key', 'once', 'script',
  83. 'loop', 'start', 'step', 'max', 'show', 'values', 'value', 'from', 'item'
  84. ),
  85. 7 => array(
  86. 'eq', 'neq', 'ne', 'lte', 'gte', 'ge', 'le', 'not', 'mod'
  87. ),
  88. ),
  89. 'SYMBOLS' => array(
  90. '/', '=', '==', '!=', '>', '<', '>=', '<=', '!', '%'
  91. ),
  92. 'CASE_SENSITIVE' => array(
  93. GESHI_COMMENTS => false,
  94. 1 => false,
  95. 2 => false,
  96. 3 => false,
  97. 4 => false,
  98. 5 => false,
  99. 6 => false,
  100. 7 => false,
  101. ),
  102. 'STYLES' => array(
  103. 'KEYWORDS' => array(
  104. 1 => 'color: #0600FF;', //Functions
  105. 2 => 'color: #008000;', //Modifiers
  106. 3 => 'color: #0600FF;', //Custom Functions
  107. 4 => 'color: #804040;', //Variables
  108. 5 => 'color: #008000;', //Methods
  109. 6 => 'color: #6A0A0A;', //Attributes
  110. 7 => 'color: #D36900;' //Text-based symbols
  111. ),
  112. 'COMMENTS' => array(
  113. 'MULTI' => 'color: #008080; font-style: italic;'
  114. ),
  115. 'ESCAPE_CHAR' => array(
  116. 0 => 'color: #000099; font-weight: bold;'
  117. ),
  118. 'BRACKETS' => array(
  119. 0 => 'color: #D36900;'
  120. ),
  121. 'STRINGS' => array(
  122. 0 => 'color: #ff0000;'
  123. ),
  124. 'NUMBERS' => array(
  125. 0 => 'color: #cc66cc;'
  126. ),
  127. 'METHODS' => array(
  128. 1 => 'color: #006600;'
  129. ),
  130. 'SYMBOLS' => array(
  131. 0 => 'color: #D36900;'
  132. ),
  133. 'SCRIPT' => array(
  134. 0 => ''
  135. ),
  136. 'REGEXPS' => array(
  137. )
  138. ),
  139. 'URLS' => array(
  140. 1 => 'http://smarty.php.net/{FNAME}',
  141. 2 => 'http://smarty.php.net/{FNAME}',
  142. 3 => 'http://smarty.php.net/{FNAME}',
  143. 4 => 'http://smarty.php.net/{FNAME}',
  144. 5 => 'http://smarty.php.net/{FNAME}',
  145. 6 => '',
  146. 7 => 'http://smarty.php.net/{FNAME}'
  147. ),
  148. 'OOLANG' => true,
  149. 'OBJECT_SPLITTERS' => array(
  150. 1 => '.'
  151. ),
  152. 'REGEXPS' => array(
  153. ),
  154. 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
  155. 'SCRIPT_DELIMITERS' => array(
  156. 0 => array(
  157. '{' => '}'
  158. )
  159. ),
  160. 'HIGHLIGHT_STRICT_BLOCK' => array(
  161. 0 => true
  162. ),
  163. 'PARSER_CONTROL' => array(
  164. 'KEYWORDS' => array(
  165. 'DISALLOWED_BEFORE' => "a-zA-Z0-9\$_\|\#;>|^",
  166. 'DISALLOWED_AFTER' => "a-zA-Z0-9_<\|%\\-&"
  167. )
  168. )
  169. );
  170. ?>