PageRenderTime 59ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/asp.xml

#
XML | 518 lines | 363 code | 83 blank | 72 comment | 0 complexity | 3af2fecf16e42260ad7b6a75b3b4046a MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <?xml version="1.0"?>
  2. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  3. <!-- ASP mode by Andre Kaplan
  4. Updated by Simon Ruggier -->
  5. <MODE>
  6. <PROPS>
  7. <PROPERTY NAME="commentStart" VALUE="&lt;!--" />
  8. <PROPERTY NAME="commentEnd" VALUE="--&gt;" />
  9. </PROPS>
  10. <RULES IGNORE_CASE="TRUE">
  11. <SEQ TYPE="MARKUP" DELEGATE="ASPVB">&lt;%@LANGUAGE="VBSCRIPT"%&gt;</SEQ>
  12. <SEQ TYPE="MARKUP" DELEGATE="ASPJS">&lt;%@LANGUAGE="JSCRIPT"%&gt;</SEQ>
  13. <SEQ TYPE="MARKUP" DELEGATE="ASPJS">&lt;%@LANGUAGE="JAVASCRIPT"%&gt;</SEQ>
  14. <SEQ TYPE="MARKUP" DELEGATE="ASPPL">&lt;%@LANGUAGE="PERLSCRIPT"%&gt;</SEQ>
  15. <!-- Inlined server-side VBScript -->
  16. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  17. <BEGIN>&lt;%</BEGIN>
  18. <END>%&gt;</END>
  19. </SPAN>
  20. <!-- Server-side VBScript -->
  21. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  22. <BEGIN>&lt;script language="vbscript" runat="server"&gt;</BEGIN>
  23. <END>&lt;/script&gt;</END>
  24. </SPAN>
  25. <!-- Server-side Javascript -->
  26. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  27. <BEGIN>&lt;script language="jscript" runat="server"&gt;</BEGIN>
  28. <END>&lt;/script&gt;</END>
  29. </SPAN>
  30. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  31. <BEGIN>&lt;script language="javascript" runat="server"&gt;</BEGIN>
  32. <END>&lt;/script&gt;</END>
  33. </SPAN>
  34. <!-- Server-side PerlScript -->
  35. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  36. <BEGIN>&lt;script language="perlscript" runat="server"&gt;</BEGIN>
  37. <END>&lt;/script&gt;</END>
  38. </SPAN>
  39. <!-- Client-side javascript -->
  40. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  41. <BEGIN>&lt;script language="jscript"&gt;</BEGIN>
  42. <END>&lt;/script&gt;</END>
  43. </SPAN>
  44. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  45. <BEGIN>&lt;script language="javascript"&gt;</BEGIN>
  46. <END>&lt;/script&gt;</END>
  47. </SPAN>
  48. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  49. <BEGIN>&lt;script&gt;</BEGIN>
  50. <END>&lt;/script&gt;</END>
  51. </SPAN>
  52. <!-- Server-Side include -->
  53. <SPAN TYPE="MARKUP">
  54. <BEGIN>&lt;!--#</BEGIN>
  55. <END>--&gt;</END>
  56. </SPAN>
  57. <!-- SGML comment -->
  58. <SPAN TYPE="COMMENT1" DELEGATE="ASPVB_SGML">
  59. <BEGIN>&lt;!--</BEGIN>
  60. <END>--&gt;</END>
  61. </SPAN>
  62. <!-- stylesheet -->
  63. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_STYLE">
  64. <BEGIN>&lt;STYLE&gt;</BEGIN>
  65. <END>&lt;/STYLE&gt;</END>
  66. </SPAN>
  67. <!-- markup tags -->
  68. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_TAGS">
  69. <BEGIN>&lt;</BEGIN>
  70. <END>&gt;</END>
  71. </SPAN>
  72. <!-- SGML entities -->
  73. <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  74. <BEGIN>&amp;</BEGIN>
  75. <END>;</END>
  76. </SPAN>
  77. </RULES>
  78. <!-- ******************************************************************
  79. ASP with VBScript as default script engine
  80. ****************************************************************** -->
  81. <RULES SET="ASPVB" IGNORE_CASE="TRUE">
  82. <!-- Inlined server-side VBScript -->
  83. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  84. <BEGIN>&lt;%</BEGIN>
  85. <END>%&gt;</END>
  86. </SPAN>
  87. <!-- Server-side VBScript -->
  88. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  89. <BEGIN>&lt;script language="vbscript" runat="server"&gt;</BEGIN>
  90. <END>&lt;/script&gt;</END>
  91. </SPAN>
  92. <!-- Server-side Javascript -->
  93. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  94. <BEGIN>&lt;script language="jscript" runat="server"&gt;</BEGIN>
  95. <END>&lt;/script&gt;</END>
  96. </SPAN>
  97. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  98. <BEGIN>&lt;script language="javascript" runat="server"&gt;</BEGIN>
  99. <END>&lt;/script&gt;</END>
  100. </SPAN>
  101. <!-- Server-side PerlScript -->
  102. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  103. <BEGIN>&lt;script language="perlscript" runat="server"&gt;</BEGIN>
  104. <END>&lt;/script&gt;</END>
  105. </SPAN>
  106. <!-- Client-side javascript -->
  107. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  108. <BEGIN>&lt;script language="jscript"&gt;</BEGIN>
  109. <END>&lt;/script&gt;</END>
  110. </SPAN>
  111. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  112. <BEGIN>&lt;script language="javascript"&gt;</BEGIN>
  113. <END>&lt;/script&gt;</END>
  114. </SPAN>
  115. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_CSJS">
  116. <BEGIN>&lt;script&gt;</BEGIN>
  117. <END>&lt;/script&gt;</END>
  118. </SPAN>
  119. <!-- Server-Side include -->
  120. <SPAN TYPE="MARKUP">
  121. <BEGIN>&lt;!--#</BEGIN>
  122. <END>--&gt;</END>
  123. </SPAN>
  124. <!-- SGML comment -->
  125. <SPAN TYPE="COMMENT1" DELEGATE="ASPVB_SGML">
  126. <BEGIN>&lt;!--</BEGIN>
  127. <END>--&gt;</END>
  128. </SPAN>
  129. <!-- stylesheet -->
  130. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_STYLE">
  131. <BEGIN>&lt;STYLE&gt;</BEGIN>
  132. <END>&lt;/STYLE&gt;</END>
  133. </SPAN>
  134. <!-- markup tags -->
  135. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_TAGS">
  136. <BEGIN>&lt;/</BEGIN>
  137. <END>&gt;</END>
  138. </SPAN>
  139. <SPAN TYPE="MARKUP" DELEGATE="ASPVB_TAGS">
  140. <BEGIN>&lt;</BEGIN>
  141. <END>&gt;</END>
  142. </SPAN>
  143. <!-- SGML entities -->
  144. <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  145. <BEGIN>&amp;</BEGIN>
  146. <END>;</END>
  147. </SPAN>
  148. </RULES>
  149. <!-- ******************************************************************
  150. ASP with JScript as default script engine
  151. ****************************************************************** -->
  152. <RULES SET="ASPJS" IGNORE_CASE="TRUE">
  153. <!-- Inlined server-side Javascript -->
  154. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  155. <BEGIN>&lt;%</BEGIN>
  156. <END>%&gt;</END>
  157. </SPAN>
  158. <!-- Server-side VBScript -->
  159. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  160. <BEGIN>&lt;script language="vbscript" runat="server"&gt;</BEGIN>
  161. <END>&lt;/script&gt;</END>
  162. </SPAN>
  163. <!-- Server-side Javascript -->
  164. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  165. <BEGIN>&lt;script language="jscript" runat="server"&gt;</BEGIN>
  166. <END>&lt;/script&gt;</END>
  167. </SPAN>
  168. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  169. <BEGIN>&lt;script language="javascript" runat="server"&gt;</BEGIN>
  170. <END>&lt;/script&gt;</END>
  171. </SPAN>
  172. <!-- Server-side PerlScript -->
  173. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  174. <BEGIN>&lt;script language="perlscript" runat="server"&gt;</BEGIN>
  175. <END>&lt;/script&gt;</END>
  176. </SPAN>
  177. <!-- Client-side javascript -->
  178. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_CSJS">
  179. <BEGIN>&lt;script language="jscript"&gt;</BEGIN>
  180. <END>&lt;/script&gt;</END>
  181. </SPAN>
  182. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_CSJS">
  183. <BEGIN>&lt;script language="javascript"&gt;</BEGIN>
  184. <END>&lt;/script&gt;</END>
  185. </SPAN>
  186. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_CSJS">
  187. <BEGIN>&lt;script&gt;</BEGIN>
  188. <END>&lt;/script&gt;</END>
  189. </SPAN>
  190. <!-- Server-Side include -->
  191. <SPAN TYPE="MARKUP">
  192. <BEGIN>&lt;!--#</BEGIN>
  193. <END>--&gt;</END>
  194. </SPAN>
  195. <!-- SGML comment -->
  196. <SPAN TYPE="COMMENT1" DELEGATE="ASPJS_SGML">
  197. <BEGIN>&lt;!--</BEGIN>
  198. <END>--&gt;</END>
  199. </SPAN>
  200. <!-- stylesheet -->
  201. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_STYLE">
  202. <BEGIN>&lt;STYLE&gt;</BEGIN>
  203. <END>&lt;/STYLE&gt;</END>
  204. </SPAN>
  205. <!-- markup tags -->
  206. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_TAGS">
  207. <BEGIN>&lt;/</BEGIN>
  208. <END>&gt;</END>
  209. </SPAN>
  210. <SPAN TYPE="MARKUP" DELEGATE="ASPJS_TAGS">
  211. <BEGIN>&lt;</BEGIN>
  212. <END>&gt;</END>
  213. </SPAN>
  214. <!-- SGML entities -->
  215. <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  216. <BEGIN>&amp;</BEGIN>
  217. <END>;</END>
  218. </SPAN>
  219. </RULES>
  220. <!-- ******************************************************************
  221. ASP with PerlScript as default script engine
  222. ****************************************************************** -->
  223. <RULES SET="ASPPL" IGNORE_CASE="TRUE">
  224. <!-- Inlined server-side Perlscript -->
  225. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  226. <BEGIN>&lt;%</BEGIN>
  227. <END>%&gt;</END>
  228. </SPAN>
  229. <!-- Server-side VBScript -->
  230. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  231. <BEGIN>&lt;script language="vbscript" runat="server"&gt;</BEGIN>
  232. <END>&lt;/script&gt;</END>
  233. </SPAN>
  234. <!-- Server-side Javascript -->
  235. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  236. <BEGIN>&lt;script language="jscript" runat="server"&gt;</BEGIN>
  237. <END>&lt;/script&gt;</END>
  238. </SPAN>
  239. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  240. <BEGIN>&lt;script language="javascript" runat="server"&gt;</BEGIN>
  241. <END>&lt;/script&gt;</END>
  242. </SPAN>
  243. <!-- Server-side PerlScript -->
  244. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  245. <BEGIN>&lt;script language="perlscript" runat="server"&gt;</BEGIN>
  246. <END>&lt;/script&gt;</END>
  247. </SPAN>
  248. <!-- Client-side javascript -->
  249. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_CSJS">
  250. <BEGIN>&lt;script language="jscript"&gt;</BEGIN>
  251. <END>&lt;/script&gt;</END>
  252. </SPAN>
  253. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_CSJS">
  254. <BEGIN>&lt;script language="javascript"&gt;</BEGIN>
  255. <END>&lt;/script&gt;</END>
  256. </SPAN>
  257. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_CSJS">
  258. <BEGIN>&lt;script&gt;</BEGIN>
  259. <END>&lt;/script&gt;</END>
  260. </SPAN>
  261. <!-- Server-Side include -->
  262. <SPAN TYPE="MARKUP">
  263. <BEGIN>&lt;!--#</BEGIN>
  264. <END>--&gt;</END>
  265. </SPAN>
  266. <!-- SGML comment -->
  267. <SPAN TYPE="COMMENT1" DELEGATE="ASPPL_SGML">
  268. <BEGIN>&lt;!--</BEGIN>
  269. <END>--&gt;</END>
  270. </SPAN>
  271. <!-- stylesheet -->
  272. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_STYLE">
  273. <BEGIN>&lt;STYLE&gt;</BEGIN>
  274. <END>&lt;/STYLE&gt;</END>
  275. </SPAN>
  276. <!-- markup tags -->
  277. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_TAGS">
  278. <BEGIN>&lt;/</BEGIN>
  279. <END>&gt;</END>
  280. </SPAN>
  281. <SPAN TYPE="MARKUP" DELEGATE="ASPPL_TAGS">
  282. <BEGIN>&lt;</BEGIN>
  283. <END>&gt;</END>
  284. </SPAN>
  285. <!-- SGML entities -->
  286. <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  287. <BEGIN>&amp;</BEGIN>
  288. <END>;</END>
  289. </SPAN>
  290. </RULES>
  291. <!-- ******************************************************************
  292. HTML Tags
  293. ****************************************************************** -->
  294. <RULES SET="ASPVB_TAGS" DEFAULT="MARKUP">
  295. <!-- Server-side VBScript -->
  296. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  297. <BEGIN>&lt;%</BEGIN>
  298. <END>%&gt;</END>
  299. </SPAN>
  300. <SPAN TYPE="LITERAL1" DELEGATE ="ASPVB_LIT1">
  301. <BEGIN>"</BEGIN>
  302. <END>"</END>
  303. </SPAN>
  304. <SPAN TYPE="LITERAL1" DELEGATE ="ASPVB_LIT1">
  305. <BEGIN>'</BEGIN>
  306. <END>'</END>
  307. </SPAN>
  308. <SEQ TYPE="OPERATOR">=</SEQ>
  309. </RULES>
  310. <RULES SET="ASPVB_LIT1" DEFAULT="LITERAL1">
  311. <!-- Server-side VBScript -->
  312. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  313. <BEGIN>&lt;%</BEGIN>
  314. <END>%&gt;</END>
  315. </SPAN>
  316. </RULES>
  317. <RULES SET="ASPJS_TAGS" DEFAULT="MARKUP">
  318. <!-- Server-side JavaScript -->
  319. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  320. <BEGIN>&lt;%</BEGIN>
  321. <END>%&gt;</END>
  322. </SPAN>
  323. <SPAN TYPE="LITERAL1" DELEGATE ="ASPJS_LIT1">
  324. <BEGIN>"</BEGIN>
  325. <END>"</END>
  326. </SPAN>
  327. <SPAN TYPE="LITERAL1" DELEGATE ="ASPJS_LIT1">
  328. <BEGIN>'</BEGIN>
  329. <END>'</END>
  330. </SPAN>
  331. <SEQ TYPE="OPERATOR">=</SEQ>
  332. </RULES>
  333. <RULES SET="ASPJS_LIT1" DEFAULT="LITERAL1">
  334. <!-- Server-side JavaScript -->
  335. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  336. <BEGIN>&lt;%</BEGIN>
  337. <END>%&gt;</END>
  338. </SPAN>
  339. </RULES>
  340. <RULES SET="ASPPL_TAGS" DEFAULT="MARKUP">
  341. <!-- Server-side PerlScript -->
  342. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  343. <BEGIN>&lt;%</BEGIN>
  344. <END>%&gt;</END>
  345. </SPAN>
  346. <SPAN TYPE="LITERAL1" DELEGATE ="ASPPL_LIT1">
  347. <BEGIN>"</BEGIN>
  348. <END>"</END>
  349. </SPAN>
  350. <SPAN TYPE="LITERAL1" DELEGATE ="ASPPL_LIT1">
  351. <BEGIN>'</BEGIN>
  352. <END>'</END>
  353. </SPAN>
  354. <SEQ TYPE="OPERATOR">=</SEQ>
  355. </RULES>
  356. <RULES SET="ASPPL_LIT1" DEFAULT="LITERAL1">
  357. <!-- Server-side PerlScript -->
  358. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  359. <BEGIN>&lt;%</BEGIN>
  360. <END>%&gt;</END>
  361. </SPAN>
  362. </RULES>
  363. <!-- These three rules sets handle server side scripts being mixed into client side javascript -->
  364. <RULES SET="ASPVB_CSJS">
  365. <!-- Server-side VBScript -->
  366. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  367. <BEGIN>&lt;%</BEGIN>
  368. <END>%&gt;</END>
  369. </SPAN>
  370. <IMPORT DELEGATE="javascript::MAIN"/>
  371. </RULES>
  372. <RULES SET="ASPJS_CSJS">
  373. <!-- Server-side JavaScript -->
  374. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  375. <BEGIN>&lt;%</BEGIN>
  376. <END>%&gt;</END>
  377. </SPAN>
  378. <IMPORT DELEGATE="javascript::MAIN"/>
  379. </RULES>
  380. <RULES SET="ASPPL_CSJS">
  381. <!-- Server-side PerlScript -->
  382. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  383. <BEGIN>&lt;%</BEGIN>
  384. <END>%&gt;</END>
  385. </SPAN>
  386. <IMPORT DELEGATE="javascript::MAIN"/>
  387. </RULES>
  388. <!-- These three rules sets handle server side scripts being mixed into stylesheets -->
  389. <RULES SET="ASPVB_STYLE">
  390. <!-- Server-side VBScript -->
  391. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  392. <BEGIN>&lt;%</BEGIN>
  393. <END>%&gt;</END>
  394. </SPAN>
  395. <IMPORT DELEGATE="css::MAIN"/>
  396. </RULES>
  397. <RULES SET="ASPJS_STYLE">
  398. <!-- Server-side JavaScript -->
  399. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  400. <BEGIN>&lt;%</BEGIN>
  401. <END>%&gt;</END>
  402. </SPAN>
  403. <IMPORT DELEGATE="css::MAIN"/>
  404. </RULES>
  405. <RULES SET="ASPPL_STYLE">
  406. <!-- Server-side PerlScript -->
  407. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  408. <BEGIN>&lt;%</BEGIN>
  409. <END>%&gt;</END>
  410. </SPAN>
  411. <IMPORT DELEGATE="css::MAIN"/>
  412. </RULES>
  413. <!-- These three rules sets handle server side scripts being mixed into SGML Comments -->
  414. <RULES SET="ASPVB_SGML" DEFAULT="COMMENT1">
  415. <!-- Server-side VBScript -->
  416. <SPAN TYPE="MARKUP" DELEGATE="vbscript::MAIN">
  417. <BEGIN>&lt;%</BEGIN>
  418. <END>%&gt;</END>
  419. </SPAN>
  420. </RULES>
  421. <RULES SET="ASPJS_SGML" DEFAULT="COMMENT1">
  422. <!-- Server-side JavaScript -->
  423. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  424. <BEGIN>&lt;%</BEGIN>
  425. <END>%&gt;</END>
  426. </SPAN>
  427. </RULES>
  428. <RULES SET="ASPPL_SGML" DEFAULT="COMMENT1">
  429. <!-- Server-side PerlScript -->
  430. <SPAN TYPE="MARKUP" DELEGATE="perl::MAIN">
  431. <BEGIN>&lt;%</BEGIN>
  432. <END>%&gt;</END>
  433. </SPAN>
  434. </RULES>
  435. </MODE>