PageRenderTime 44ms CodeModel.GetById 38ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

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