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

jEdit example source code file (n3.xml)

This example jEdit source code file (n3.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, keyword2, name, name, operator, operator, property, seq, seq, span, type, type, value

The jEdit n3.xml source code

<?xml version="1.0"?>
<!--
Basic N3 mode by Jakub Roztočil <jakub@roztocil.name>

	N3 (Notation3) is a shorthand non-XML serialization of RDF
	<http://www.w3.org/DesignIssues/Notation3.html>

Catalog entry:

	<MODE NAME="n3" FILE="n3.xml" FILE_NAME_GLOB="*.n3" />

TODO:
	* different highlighting for subject, predicate and object
	* higlight qnames, not only prefixes (prefix:qname)

-->
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
	<PROPS>
		<!-- Indent when writting more statements about the same subject -->
		<PROPERTY NAME="indentNextLines" VALUE="\S+\s+\S+\s+\S+\s*;$" />
		<PROPERTY NAME="indentOpenBrackets" VALUE="[{(" />
		<PROPERTY NAME="indentCloseBrackets" VALUE="}])" />
		<PROPERTY NAME="ignoreWhitespace" VALUE="false" />
		<PROPERTY NAME="lineComment" VALUE="#" />
	</PROPS>

	<RULES HIGHLIGHT_DIGITS="TRUE">


		<!-- @foo -->
		<MARK_FOLLOWING TYPE="KEYWORD1">@

		<!-- Prefixes -->
		<MARK_PREVIOUS TYPE="LABEL" MATCH_TYPE="OPERATOR">:

		<!-- Resource URI -->
		<SPAN TYPE="LITERAL2" NO_LINE_BREAK="TRUE">
			<BEGIN><
			<END>>
		</SPAN>

		<!-- Strings -->
		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE" ESCAPE="\">
			<BEGIN>"""
			<END>"""
		</SPAN>
		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE" ESCAPE="\">
			<BEGIN>"
			<END>"
		</SPAN>

		<!-- Operators -->
		<SEQ TYPE="OPERATOR">.
		<SEQ TYPE="OPERATOR">?
		<SEQ TYPE="OPERATOR">(
		<SEQ TYPE="OPERATOR">)
		<SEQ TYPE="OPERATOR">^^
		<SEQ TYPE="OPERATOR">}
		<SEQ TYPE="OPERATOR">{
		<SEQ TYPE="OPERATOR">,
		<SEQ TYPE="OPERATOR">;
		<SEQ TYPE="OPERATOR">]
		<SEQ TYPE="OPERATOR">[
		<SEQ TYPE="OPERATOR">:
		<SEQ TYPE="OPERATOR">=>
		<SEQ TYPE="OPERATOR">=

		<!-- COMMENTS -->
		<EOL_SPAN TYPE="COMMENT1" AT_LINE_START="FALSE">#

		<!-- KEYWORDS -->
		<KEYWORDS>
			<KEYWORD2>a
			<KEYWORD2>is
			<KEYWORD2>has
			<KEYWORD2>of
			<KEYWORD3>true
			<KEYWORD3>false
		</KEYWORDS>
	</RULES>


</MODE>

 	  	 

Other jEdit examples (source code examples)

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