alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

jEdit example source code file (rhtml.xml)

This example jEdit source code file (rhtml.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - jEdit tags/keywords

begin, begin, comment1, delegate, end, end, markup, property, rules, span, span, type, type, value

The jEdit rhtml.xml source code

<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!-- rhtml (ruby+html) mode -->

<MODE>
	<PROPS>
		<PROPERTY NAME="commentStart" VALUE="<!--" />
		<PROPERTY NAME="commentEnd" VALUE="-->" />
		<PROPERTY NAME="commentStart" VALUE="<%#" />
		<PROPERTY NAME="commentEnd" VALUE="%>" />
	</PROPS>
	<RULES IGNORE_CASE="TRUE">
		
		<!-- eRuby comment -->
		<SPAN TYPE="COMMENT1">
			<BEGIN><%#
			<END>%>
		</SPAN>

		<!-- eRuby assignment -->
		<SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
			<BEGIN><%=
			<END>%>
		</SPAN>

		<!-- eRuby statement -->
		<SPAN TYPE="MARKUP" DELEGATE="ruby::MAIN">
			<BEGIN><%
			<END>%>
		</SPAN>

		<!-- SGML comment -->
		<SPAN TYPE="COMMENT1">
			<BEGIN><!--
			<END>-->
		</SPAN>

		<!-- JavaScript -->
		<SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
			<BEGIN><SCRIPT
			<END></SCRIPT>
		</SPAN>

		<!-- stylesheet -->
		<SPAN TYPE="MARKUP" DELEGATE="html::CSS">
			<BEGIN><STYLE
			<END></STYLE>
		</SPAN>

		<!-- DTD instructions -->
		<SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
			<BEGIN><!
			<END>>
		</SPAN>

		<!-- markup tags -->
		<SPAN TYPE="MARKUP" DELEGATE="TAGS">
			<BEGIN><
			<END>>
		</SPAN>

		<!-- SGML entities -->
		<SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
			<BEGIN>&
			<END>;
		</SPAN>
	</RULES>

	<RULES SET="TAGS" DEFAULT="MARKUP">

		<SPAN TYPE="COMMENT1">
			<BEGIN><!--
			<END>-->
		</SPAN>

		<SPAN TYPE="COMMENT1">
			<BEGIN><%#
			<END>%>
		</SPAN>

		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
			<BEGIN>"
			<END>"
		</SPAN>

		<SPAN TYPE="LITERAL1" DELEGATE="TAGS_LITERAL">
			<BEGIN>'
			<END>'
		</SPAN>

		<SEQ TYPE="OPERATOR">=
	</RULES>

	<RULES SET="TAGS_LITERAL" DEFAULT="LITERAL1">

		<SPAN TYPE="MARKUP">
			<BEGIN><%
			<END>%>
		</SPAN>

		<SPAN TYPE="MARKUP">
			<BEGIN><%=
			<END>%>
		</SPAN>
	</RULES>
</MODE>

Other jEdit examples (source code examples)

Here is a short list of links related to this jEdit rhtml.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.