PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/jhtml.xml

#
XML | 156 lines | 102 code | 24 blank | 30 comment | 0 complexity | 0213e5070a335081f82c90327c4a2989 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. <!--
  4. JHTML mode by Will Sargent <wsargent@atg.com>
  5. -->
  6. <MODE>
  7. <PROPS>
  8. <PROPERTY NAME="commentStart" VALUE="&lt;!--" />
  9. <PROPERTY NAME="commentEnd" VALUE="--&gt;" />
  10. <!-- Indent droplets and oparams -->
  11. <PROPERTY NAME="indentPrevLine"
  12. VALUE="\s*(&lt;\s*(droplet|oparam))\s+.*" />
  13. <!-- Sadly, there doesn't seem to be a way to
  14. undent when we see a /oparam> tag... -->
  15. </PROPS>
  16. <RULES IGNORE_CASE="TRUE">
  17. <!-- whitespace: (space and tab) -->
  18. <WHITESPACE> </WHITESPACE>
  19. <WHITESPACE> </WHITESPACE>
  20. <!-- Allow for Dynamo SSI -->
  21. <SPAN TYPE="NULL">
  22. <BEGIN>&lt;!--#</BEGIN>
  23. <END>--&gt;</END>
  24. </SPAN>
  25. <!-- SGML comment -->
  26. <SPAN TYPE="COMMENT1">
  27. <BEGIN>&lt;!--</BEGIN>
  28. <END>--&gt;</END>
  29. </SPAN>
  30. <!-- markup tags -->
  31. <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">
  32. <BEGIN>`</BEGIN>
  33. <END>`</END>
  34. </SPAN>
  35. <!-- Embedded Java -->
  36. <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">
  37. <BEGIN>&lt;java&gt;</BEGIN>
  38. <END>&lt;/java&gt;</END>
  39. </SPAN>
  40. <!-- Don't know how to do this correctly.
  41. <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">
  42. <BEGIN>&lt;java type=</BEGIN>
  43. <END>&lt;/java&gt;</END>
  44. </SPAN>
  45. -->
  46. <!-- JavaScript -->
  47. <SPAN TYPE="MARKUP" DELEGATE="javascript::MAIN">
  48. <BEGIN>&lt;SCRIPT&gt;</BEGIN>
  49. <END>&lt;/SCRIPT&gt;</END>
  50. </SPAN>
  51. <!-- stylesheet -->
  52. <SPAN TYPE="MARKUP" DELEGATE="css::MAIN">
  53. <BEGIN>&lt;STYLE&gt;</BEGIN>
  54. <END>&lt;/STYLE&gt;</END>
  55. </SPAN>
  56. <!-- DTD instructions -->
  57. <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
  58. <BEGIN>&lt;!</BEGIN>
  59. <END>&gt;</END>
  60. </SPAN>
  61. <!-- All markup defaults to JHTML. -->
  62. <SPAN TYPE="MARKUP" DELEGATE="JHTML">
  63. <BEGIN>&lt;</BEGIN>
  64. <END>&gt;</END>
  65. </SPAN>
  66. <!-- SGML entities -->
  67. <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  68. <BEGIN>&amp;</BEGIN>
  69. <END>;</END>
  70. </SPAN>
  71. </RULES>
  72. <RULES SET="JHTML" DEFAULT="MARKUP">
  73. <!-- whitespace: (space and tab) -->
  74. <WHITESPACE> </WHITESPACE>
  75. <WHITESPACE> </WHITESPACE>
  76. <KEYWORDS IGNORE_CASE="TRUE">
  77. <KEYWORD1>importbean</KEYWORD1>
  78. <KEYWORD1>droplet</KEYWORD1>
  79. <KEYWORD1>param</KEYWORD1>
  80. <KEYWORD1>oparam</KEYWORD1>
  81. <KEYWORD1>valueof</KEYWORD1>
  82. <KEYWORD1>setvalue</KEYWORD1>
  83. <KEYWORD1>servlet</KEYWORD1>
  84. <KEYWORD2>bean</KEYWORD2>
  85. <KEYWORD2>submitvalue</KEYWORD2>
  86. <KEYWORD2>declareparam</KEYWORD2>
  87. <KEYWORD2>synchronized</KEYWORD2>
  88. <KEYWORD2>priority</KEYWORD2>
  89. <!-- standard converters -->
  90. <KEYWORD2>converter</KEYWORD2>
  91. <KEYWORD2>date</KEYWORD2>
  92. <KEYWORD2>number</KEYWORD2>
  93. <KEYWORD2>required</KEYWORD2>
  94. <KEYWORD2>nullable</KEYWORD2>
  95. <KEYWORD2>currency</KEYWORD2>
  96. <KEYWORD2>currencyConversion</KEYWORD2>
  97. <KEYWORD2>euro</KEYWORD2>
  98. <KEYWORD2>locale</KEYWORD2>
  99. <KEYWORD2>symbol</KEYWORD2>
  100. <!-- Can't use this because of image src... -->
  101. <!-- <KEYWORD2>src</KEYWORD2> -->
  102. </KEYWORDS>
  103. <!-- SGML comment -->
  104. <SPAN TYPE="COMMENT1">
  105. <BEGIN>&lt;!--</BEGIN>
  106. <END>--&gt;</END>
  107. </SPAN>
  108. <SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
  109. <BEGIN>"</BEGIN>
  110. <END>"</END>
  111. </SPAN>
  112. <SPAN TYPE="LITERAL1" DELEGATE="ATTRVALUE">
  113. <BEGIN>'</BEGIN>
  114. <END>'</END>
  115. </SPAN>
  116. <SEQ TYPE="MARKUP">/</SEQ>
  117. <SEQ TYPE="NULL">=</SEQ>
  118. </RULES>
  119. <RULES SET="ATTRVALUE" DEFAULT="LITERAL1" HIGHLIGHT_DIGITS="TRUE">
  120. <!-- whitespace: (space and tab) -->
  121. <WHITESPACE> </WHITESPACE>
  122. <WHITESPACE> </WHITESPACE>
  123. <!-- backticks are java -->
  124. <SPAN TYPE="MARKUP" DELEGATE="java::MAIN">
  125. <BEGIN>`</BEGIN>
  126. <END>`</END>
  127. </SPAN>
  128. <!-- Allow param: and bean: properties to be marked up -->
  129. <SEQ TYPE="LABEL">param:</SEQ>
  130. <SEQ TYPE="LABEL">bean:</SEQ>
  131. </RULES>
  132. </MODE>