|
jEdit example source code file (typoscript.xml)
This example jEdit source code file (typoscript.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.
The jEdit typoscript.xml source code
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<!-- TypoScript syntax highlighting, by Neil Bertram
<SPAN TYPE="KEYWORD4" NO_LINE_BREAK="TRUE" AT_LINE_START="TRUE">
<BEGIN><INCLUDE
<END>>
</SPAN>
<!-- Assignments (using the = operator) are delegated to the assignment rule for more flexibility -->
<EOL_SPAN TYPE="OPERATOR" DELEGATE="typoscript::assignment" AT_LINE_START="FALSE" AT_WHITESPACE_END="FALSE">=
<!-- Multi-line assignments (using the (blah blah) syntax) -->
<SPAN TYPE="OPERATOR" AT_LINE_START="FALSE" NO_LINE_BREAK="FALSE" DELEGATE="typoscript::assignment">
<BEGIN>(
<END AT_WHITESPACE_END="TRUE">)
</SPAN>
<!-- Object copies (using the < operator)
Note that object references (=<) are not highlighted due to the fact
that they're only supported by the core template engine, and not
actually a feature of typoscript itself
-->
<EOL_SPAN TYPE="OPERATOR" AT_LINE_START="FALSE" DELEGATE="typoscript::copy"><
<!-- Comments
- note that block comments must start/end at the beginning of the trimmed line
but this is difficult to accomplish here, so we just force it to be line-start
-->
<EOL_SPAN AT_WORD_START="TRUE" TYPE="COMMENT4">#
<SPAN TYPE="COMMENT1" NO_LINE_BREAK="FALSE" AT_LINE_START="TRUE">
<BEGIN>/*
<END>*/
</SPAN>
<EOL_SPAN AT_WORD_START="TRUE" TYPE="COMMENT2">/
<!-- Conditionals (anything inside square brackets at a word start -->
<SPAN TYPE="KEYWORD1" NO_LINE_BREAK="TRUE" AT_WORD_START="TRUE">
<BEGIN>[
<END>]
</SPAN>
<!-- Special characters that haven't been caught yet -->
<SEQ TYPE="NULL">{
<SEQ TYPE="NULL">}
<SEQ TYPE="NULL">(
<SEQ TYPE="NULL">)
</RULES>
<!-- Rule for both single and multi-line assignments -->
<RULES SET="assignment" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="FALSE" DEFAULT="LITERAL1">
<!-- TypoScript constants inserted with {$blah} are highlighted -->
<SPAN TYPE="LABEL" AT_WORD_START="FALSE" AT_LINE_START="FALSE">
<BEGIN>{$
<END>}
</SPAN>
</RULES>
<!-- Rule for object copies -->
<RULES SET="copy" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="FALSE" DEFAULT="KEYWORD2">
<!-- nothing right now -->
</RULES>
</MODE>
Other jEdit examples (source code examples)
Here is a short list of links related to this jEdit typoscript.xml source code file:
|