KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jquery.php 8.6KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?php
  2. /*************************************************************************************
  3. * jquery.php
  4. * --------------
  5. * Author: Rob Loach (http://www.robloach.net)
  6. * Copyright: (c) 2009 Rob Loach (http://www.robloach.net)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/07/20
  9. *
  10. * jQuery 1.3 language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2009/07/20 (1.0.8.5)
  15. * - First Release
  16. *
  17. * TODO (updated 2009/07/20)
  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' => 'jQuery',
  41. 'COMMENT_SINGLE' => array(1 => '//'),
  42. 'COMMENT_MULTI' => array('/*' => '*/'),
  43. //Regular Expressions
  44. 'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"),
  45. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS' => array("'", '"'),
  47. 'ESCAPE_CHAR' => '\\',
  48. 'KEYWORDS' => array(
  49. 1 => array(
  50. 'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do',
  51. 'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item',
  52. 'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void',
  53. 'while', 'write', 'with'
  54. ),
  55. 2 => array(
  56. 'class', 'const', 'default', 'debugger', 'export', 'extends', 'false',
  57. 'function', 'import', 'namespace', 'new', 'null', 'package', 'private',
  58. 'protected', 'public', 'super', 'true', 'use', 'var'
  59. ),
  60. 3 => array(
  61. // common functions for Window object
  62. 'alert', 'back', 'close', 'confirm', 'forward', 'home',
  63. 'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove',
  64. 'onresize', 'onunload', 'open', 'print', 'prompt', 'status',
  65. //'blur', 'focus', 'scroll', // Duplicate with kw9
  66. //'stop', //Duplicate with kw10
  67. ),
  68. 4 => array(
  69. // jQuery Core Functions
  70. 'jQuery', 'each', 'size', 'length', 'selector', 'context', 'eq',
  71. 'index', 'data', 'removeData', 'queue', 'dequeue', 'noConflict'
  72. //'get', //Duplicate with kw11
  73. ),
  74. 5 => array(
  75. // jQuery Attribute Functions
  76. 'attr', 'removeAttr', 'addClass', 'hasClass', 'removeClass', 'toggleClass',
  77. 'html', 'text', 'val',
  78. ),
  79. 6 => array(
  80. // jQuery Traversing Functions
  81. 'filter', 'not', 'slice', 'add', 'children', 'closest',
  82. 'contents', 'find', 'next', 'nextAll', 'parent', 'parents',
  83. 'prev', 'prevAll', 'siblings', 'andSelf', 'end',
  84. //'is', //Dup with kw1
  85. //'offsetParent', //Duplicate with kw8
  86. //'map', //Duplicate with kw12
  87. ),
  88. 7 => array(
  89. // jQuery Manipulation Functions
  90. 'append', 'appendTo', 'prepend', 'prependTo', 'after', 'before', 'insertAfter',
  91. 'insertBefore', 'wrap', 'wrapAll', 'wrapInner', 'replaceWith', 'replaceAll',
  92. 'empty', 'remove', 'clone',
  93. ),
  94. 8 => array(
  95. // jQuery CSS Functions
  96. 'css', 'offset', 'offsetParent', 'position', 'scrollTop', 'scrollLeft',
  97. 'height', 'width', 'innerHeight', 'innerWidth', 'outerHeight', 'outerWidth',
  98. ),
  99. 9 => array(
  100. // jQuery Events Functions
  101. 'ready', 'bind', 'one', 'trigger', 'triggerHandler', 'unbind', 'live',
  102. 'die', 'hover', 'blur', 'change', 'click', 'dblclick', 'error',
  103. 'focus', 'keydown', 'keypress', 'keyup', 'mousedown', 'mouseenter',
  104. 'mouseleave', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'resize',
  105. 'scroll', 'select', 'submit', 'unload',
  106. //'toggle', //Duplicate with kw10
  107. //'load', //Duplicate with kw11
  108. ),
  109. 10 => array(
  110. // jQuery Effects Functions
  111. 'show', 'hide', 'toggle', 'slideDown', 'slideUp', 'slideToggle', 'fadeIn',
  112. 'fadeOut', 'fadeTo', 'animate', 'stop',
  113. ),
  114. 11 => array(
  115. // jQuery Ajax Functions
  116. 'ajax', 'load', 'get', 'getJSON', 'getScript', 'post', 'ajaxComplete',
  117. 'ajaxError', 'ajaxSend', 'ajaxStart', 'ajaxStop', 'ajaxSuccess', 'ajaxSetup',
  118. 'serialize', 'serializeArray',
  119. ),
  120. 12 => array(
  121. // jQuery Utility Functions
  122. 'support', 'browser', 'version', 'boxModal', 'extend', 'grep', 'makeArray',
  123. 'map', 'inArray', 'merge', 'unique', 'isArray', 'isFunction', 'trim',
  124. 'param',
  125. ),
  126. ),
  127. 'SYMBOLS' => array(
  128. 0 => array(
  129. '(', ')', '[', ']', '{', '}',
  130. '+', '-', '*', '/', '%',
  131. '!', '@', '&', '|', '^',
  132. '<', '>', '=',
  133. ',', ';', '?', ':'
  134. ),
  135. 1 => array(
  136. '$'
  137. )
  138. ),
  139. 'CASE_SENSITIVE' => array(
  140. GESHI_COMMENTS => false,
  141. 1 => false,
  142. 2 => false,
  143. 3 => false,
  144. 4 => false,
  145. 5 => false,
  146. 6 => false,
  147. 7 => false,
  148. 8 => false,
  149. 9 => false,
  150. 10 => false,
  151. 11 => false,
  152. 12 => false
  153. ),
  154. 'STYLES' => array(
  155. 'KEYWORDS' => array(
  156. 1 => 'color: #000066; font-weight: bold;',
  157. 2 => 'color: #003366; font-weight: bold;',
  158. 3 => 'color: #000066;',
  159. 4 => 'color: #000066;',
  160. 5 => 'color: #000066;',
  161. 6 => 'color: #000066;',
  162. 7 => 'color: #000066;',
  163. 8 => 'color: #000066;',
  164. 9 => 'color: #000066;',
  165. 10 => 'color: #000066;',
  166. 11 => 'color: #000066;',
  167. 12 => 'color: #000066;'
  168. ),
  169. 'COMMENTS' => array(
  170. 1 => 'color: #006600; font-style: italic;',
  171. 2 => 'color: #009966; font-style: italic;',
  172. 'MULTI' => 'color: #006600; font-style: italic;'
  173. ),
  174. 'ESCAPE_CHAR' => array(
  175. 0 => 'color: #000099; font-weight: bold;'
  176. ),
  177. 'BRACKETS' => array(
  178. 0 => 'color: #009900;'
  179. ),
  180. 'STRINGS' => array(
  181. 0 => 'color: #3366CC;'
  182. ),
  183. 'NUMBERS' => array(
  184. 0 => 'color: #CC0000;'
  185. ),
  186. 'METHODS' => array(
  187. 1 => 'color: #660066;'
  188. ),
  189. 'SYMBOLS' => array(
  190. 0 => 'color: #339933;',
  191. 1 => 'color: #000066;'
  192. ),
  193. 'REGEXPS' => array(
  194. ),
  195. 'SCRIPT' => array(
  196. 0 => '',
  197. 1 => '',
  198. 2 => '',
  199. 3 => ''
  200. )
  201. ),
  202. 'URLS' => array(
  203. 1 => '',
  204. 2 => '',
  205. 3 => '',
  206. 4 => 'http://docs.jquery.com/Core/{FNAME}',
  207. 5 => 'http://docs.jquery.com/Attributes/{FNAME}',
  208. 6 => 'http://docs.jquery.com/Traversing/{FNAME}',
  209. 7 => 'http://docs.jquery.com/Manipulation/{FNAME}',
  210. 8 => 'http://docs.jquery.com/CSS/{FNAME}',
  211. 9 => 'http://docs.jquery.com/Events/{FNAME}',
  212. 10 => 'http://docs.jquery.com/Effects/{FNAME}',
  213. 11 => 'http://docs.jquery.com/Ajax/{FNAME}',
  214. 12 => 'http://docs.jquery.com/Utilities/{FNAME}'
  215. ),
  216. 'OOLANG' => true,
  217. 'OBJECT_SPLITTERS' => array(
  218. 1 => '.'
  219. ),
  220. 'REGEXPS' => array(
  221. ),
  222. 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  223. 'SCRIPT_DELIMITERS' => array(
  224. 0 => array(
  225. '<script type="text/javascript">' => '</script>'
  226. ),
  227. 1 => array(
  228. '<script language="javascript">' => '</script>'
  229. )
  230. ),
  231. 'HIGHLIGHT_STRICT_BLOCK' => array(
  232. 0 => true,
  233. 1 => true
  234. )
  235. );
  236. ?>