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

jEdit example source code file (django.xml)

This example jEdit source code file (django.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, delegate, end, function, function, keyword1, keyword1, literal3, rules, rules, seq, span, type

The jEdit django.xml source code

<?xml version="1.0"?>

<MODE>
	<PROPS>
		<PROPERTY NAME="commentStart" VALUE="{% comment %}" />
		<PROPERTY NAME="commentEnd" VALUE="{% endcomment %}" />
	</PROPS>
	<RULES IGNORE_CASE="TRUE">
		<IMPORT DELEGATE="html::MAIN"/>

		<SPAN TYPE="COMMENT3">
			<BEGIN>{% comment %}
			<END>{% endcomment %}
		</SPAN>
		<SPAN TYPE="KEYWORD3" DELEGATE="DJANGO_BLOCK">
			<BEGIN>{%
			<END>%}
		</SPAN>
		<!-- variable -->
		<SPAN TYPE="KEYWORD3" DELEGATE="DJANGO_VARIABLE">
			<BEGIN>{{
			<END>}}
		</SPAN>
	</RULES>

	<RULES SET="DJANGO_VARIABLE" DEFAULT="LITERAL4">
		<IMPORT DELEGATE="DJANGO_CORE"/>
	</RULES>

	<RULES SET="DJANGO_BLOCK" DEFAULT="LITERAL4">
		<IMPORT DELEGATE="DJANGO_CORE"/>
		<KEYWORDS>
			<KEYWORD1>as
			<KEYWORD1>block
			<KEYWORD1>blocktrans
			<KEYWORD1>by
			<KEYWORD1>endblock
			<KEYWORD1>endblocktrans
			<KEYWORD1>comment
			<KEYWORD1>endcomment
			<KEYWORD1>cycle
			<KEYWORD1>date
			<KEYWORD1>debug
			<KEYWORD1>else
			<KEYWORD1>extends
			<KEYWORD1>filter
			<KEYWORD1>endfilter
			<KEYWORD1>firstof
			<KEYWORD1>for
			<KEYWORD1>endfor
			<KEYWORD1>if
			<KEYWORD1>endif
			<KEYWORD1>ifchanged
			<KEYWORD1>endifchanged
			<KEYWORD1>ifnotequal
			<KEYWORD1>endifnotequal
			<KEYWORD1>in
			<KEYWORD1>load
			<KEYWORD1>not
			<KEYWORD1>now
			<KEYWORD1>or
			<KEYWORD1>parsed
			<KEYWORD1>regroup
			<KEYWORD1>ssi
			<KEYWORD1>trans
			<KEYWORD1>with
			<KEYWORD1>widthratio
		</KEYWORDS>
	</RULES>

	<RULES SET="DJANGO_CORE">
		<SPAN TYPE="LITERAL2">
			<BEGIN>"
			<END>"
		</SPAN>
		<SEQ TYPE="OPERATOR">:
		<SEQ TYPE="OPERATOR">,
		<SEQ TYPE="OPERATOR">|
		<KEYWORDS>
			<LITERAL3>openblock
			<LITERAL3>closeblock
			<LITERAL3>openvariable
			<LITERAL3>closevariable

			<FUNCTION>add
			<FUNCTION>addslashes
			<FUNCTION>capfirst
			<FUNCTION>center
			<FUNCTION>cut
			<FUNCTION>date
			<FUNCTION>default
			<FUNCTION>dictsort
			<FUNCTION>dictsortreversed
			<FUNCTION>divisibleby
			<FUNCTION>escape
			<FUNCTION>filesizeformat
			<FUNCTION>first
			<FUNCTION>fix_ampersands
			<FUNCTION>floatformat
			<FUNCTION>get_digit
			<FUNCTION>join
			<FUNCTION>length
			<FUNCTION>length_is
			<FUNCTION>linebreaks
			<FUNCTION>linebreaksbr
			<FUNCTION>linenumbers
			<FUNCTION>ljust
			<FUNCTION>lower
			<FUNCTION>make_list
			<FUNCTION>phone2numeric
			<FUNCTION>pluralize
			<FUNCTION>pprint
			<FUNCTION>random
			<FUNCTION>removetags
			<FUNCTION>rjust
			<FUNCTION>slice
			<FUNCTION>slugify
			<FUNCTION>stringformat
			<FUNCTION>striptags
			<FUNCTION>time
			<FUNCTION>timesince
			<FUNCTION>title
			<FUNCTION>truncatewords
			<FUNCTION>unordered_list
			<FUNCTION>upper
			<FUNCTION>urlencode
			<FUNCTION>urlize
			<FUNCTION>urlizetrunc
			<FUNCTION>wordcount
			<FUNCTION>wordwrap
			<FUNCTION>yesno

		</KEYWORDS>
	</RULES>

</MODE>

Other jEdit examples (source code examples)

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