PageRenderTime 96ms CodeModel.GetById 91ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
XML | 77 lines | 61 code | 8 blank | 8 comment | 0 complexity | 464e7c0e309c481be7ac802b7199521f MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!DOCTYPE MODE SYSTEM "xmode.dtd">
 4
 5<MODE>
 6	<PROPS>
 7		<PROPERTY NAME="commentStart" VALUE="&lt;!--" />
 8		<PROPERTY NAME="commentEnd" VALUE="--&gt;" />
 9	</PROPS>
10	<RULES IGNORE_CASE="TRUE">
11		<!-- SGML comment -->
12		<SPAN TYPE="COMMENT1">
13			<BEGIN>&lt;!--</BEGIN>
14			<END>--&gt;</END>
15		</SPAN>
16
17		<!-- JavaScript -->
18		<SPAN TYPE="MARKUP" DELEGATE="JAVASCRIPT">
19			<BEGIN>&lt;SCRIPT</BEGIN>
20			<END>&lt;/SCRIPT&gt;</END>
21		</SPAN>
22
23		<!-- stylesheet -->
24		<SPAN TYPE="MARKUP" DELEGATE="CSS">
25			<BEGIN>&lt;STYLE</BEGIN>
26			<END>&lt;/STYLE&gt;</END>
27		</SPAN>
28
29		<!-- DTD instructions -->
30		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
31			<BEGIN>&lt;!</BEGIN>
32			<END>&gt;</END>
33		</SPAN>
34
35		<!-- markup tags -->
36		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
37			<BEGIN>&lt;</BEGIN>
38			<END>&gt;</END>
39		</SPAN>
40
41		<!-- SGML entities -->
42		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
43			<BEGIN>&amp;</BEGIN>
44			<END>;</END>
45		</SPAN>
46	</RULES>
47
48	<!-- ESCAPE is not exactly right but it is needed to correctly
49	     handle JavaScript in on* parameters -->
50	<RULES SET="TAGS" DEFAULT="MARKUP" ESCAPE="\">
51		<SPAN TYPE="LITERAL1">
52			<BEGIN>"</BEGIN>
53			<END>"</END>
54		</SPAN>
55
56		<SPAN TYPE="LITERAL1">
57			<BEGIN>'</BEGIN>
58			<END>'</END>
59		</SPAN>
60
61		<SEQ TYPE="OPERATOR">=</SEQ>
62	</RULES>
63
64	<RULES SET="JAVASCRIPT" DEFAULT="MARKUP" IGNORE_CASE="TRUE">
65		<SEQ TYPE="MARKUP" DELEGATE="javascript::MAIN">&gt;</SEQ>
66		<!-- handle <SCRIPT SRC="..."> properly -->
67		<SEQ TYPE="MARKUP" DELEGATE="BACK_TO_HTML">SRC=</SEQ>
68	</RULES>
69
70	<RULES SET="BACK_TO_HTML" DEFAULT="MARKUP">
71		<SEQ TYPE="MARKUP" DELEGATE="html::MAIN">&gt;</SEQ>
72	</RULES>
73
74	<RULES SET="CSS" DEFAULT="MARKUP">
75		<SEQ TYPE="MARKUP" DELEGATE="css::MAIN">&gt;</SEQ>
76	</RULES>
77</MODE>