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

jEdit example source code file (literate-haskell.xml)

This example jEdit source code file (literate-haskell.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

at_line_start, delegate, eol_span, haskell, mode, name, name, property, property, true, type, type, value, value

The jEdit literate-haskell.xml source code

<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!--
	Literate Haskell mode by Cameron Morrison (c.morrison@iinet.net.au)
	Modified version of the Haskell mode by Kristian Ovaska (kristian.ovaska@helsinki.fi)
	Based on Haskell 98
-->

<MODE>

	<PROPS>
		<PROPERTY NAME="commentStart" VALUE="{-" />
		<PROPERTY NAME="commentEnd" VALUE="-}" />
		<PROPERTY NAME="lineComment" VALUE="--" />
		<!-- apparently, this is required... -->
		<PROPERTY NAME="tabSize" VALUE="8" />
		<PROPERTY NAME="indentSize" VALUE="8" />
	</PROPS>

	<RULES IGNORE_CASE="FALSE" DEFAULT="COMMENT4">
		<EOL_SPAN AT_WHITESPACE_END="TRUE" TYPE="FUNCTION" DELEGATE="haskell::MAIN">>
		<!-- for LaTeX-style -->
		<EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT3">%
		<SPAN TYPE="LITERAL3" DELEGATE="haskell::MAIN">
			<BEGIN>\begin{code}
			<END>\end{code}
		</SPAN>
		<!--
		<EOL_SPAN_REGEXP HASH_CHAR="\" AT_LINE_START="TRUE"
			DELEGATE="latex::MAIN" TYPE="KEYWORD1"
		>\\\w+</EOL_SPAN_REGEXP>
		-->
    </RULES>

</MODE>

Other jEdit examples (source code examples)

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