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

jEdit example source code file (rfc.xml)

This example jEdit source code file (rfc.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, end, hash_char, keyword1, keyword1, keywords, mode, mode, not, not, rules, seq_regexp, type, type

The jEdit rfc.xml source code

<?xml version="1.0"?>

<!-- RFC mode by Matthieu Casanova -->
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
	<RULES HIGHLIGHT_DIGITS="TRUE" IGNORE_CASE="FALSE">
		<SEQ_REGEXP HASH_CHAR="[" TYPE="KEYWORD3">\[Page \d+\]
		<SEQ_REGEXP HASH_CHAR="[" TYPE="KEYWORD2">\[RFC\d+\]
		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
			<BEGIN>"
			<END>"
		</SPAN>
		<KEYWORDS>
			<!--{{{ Keyword list from RFC2119 -->
			<KEYWORD1>MUST
			<KEYWORD1>MUST NOT
			<KEYWORD1>REQUIRED
			<KEYWORD1>SHALL
			<KEYWORD1>SHALL NOT
			<KEYWORD1>SHOULD
			<KEYWORD1>SHOULD NOT
			<KEYWORD1>RECOMMENDED
			<KEYWORD1>MAY
			<KEYWORD1>OPTIONAL 
			<!--}}}-->
		</KEYWORDS>
	</RULES>
</MODE>

Other jEdit examples (source code examples)

Here is a short list of links related to this jEdit rfc.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.