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

jEdit example source code file (gettext.xml)

This example jEdit source code file (gettext.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, comment2, end, eol_span, eol_span, keyword3, keyword3, mark_following, mark_following, rules, span, true, type, type

The jEdit gettext.xml source code

<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<MODE>
<!--
	** jEdit edit mode for gettext catalogs (.po/.pot extension)
	** Use the ConfigurableFoldHandler plugin for optimal
	** results. =)
-->
	<PROPS>
		<PROPERTY NAME="lineComment" VALUE="# " />
	</PROPS>
	<RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
		<!-- Comments -->
		<EOL_SPAN TYPE="COMMENT2">#:
		<EOL_SPAN TYPE="COMMENT1"># 
		<EOL_SPAN TYPE="COMMENT2">#.
		<EOL_SPAN TYPE="COMMENT2">#~

		<MARK_FOLLOWING TYPE="COMMENT2">#,
		<MARK_FOLLOWING TYPE="KEYWORD3">%
		<MARK_FOLLOWING TYPE="KEYWORD3">$
		<MARK_FOLLOWING TYPE="KEYWORD3">@

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

		<!-- keywords -->
		<KEYWORDS>
			<KEYWORD1>msgid
			<KEYWORD1>msgid_plural
			<KEYWORD1>msgstr
			<KEYWORD2>fuzzy
<!--		** Ideally, we'd highlight the next msgstr differently
			** whenever fuzzy is encountered, but this doesn't seem
			** to be possible just yet.
-->
			<KEYWORD2>c-format
			<KEYWORD2>no-c-format
		</KEYWORDS>

	</RULES>

	<RULES SET="QUOTED" DEFAULT="LITERAL1">
		<SPAN TYPE="LITERAL2" NO_LINE_BREAK="TRUE">
			<BEGIN>\"
			<END>\"
		</SPAN>

		<MARK_FOLLOWING TYPE="KEYWORD3">%
		<MARK_FOLLOWING TYPE="KEYWORD3">$
		<MARK_FOLLOWING TYPE="KEYWORD3">@
	</RULES>

</MODE>

Other jEdit examples (source code examples)

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