modes.html.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of to.etc.syntaxer Show documentation
Show all versions of to.etc.syntaxer Show documentation
Syntax highlighting code using JEdit's highlighting code
The newest version!
<?xml version="1.0"?> <!DOCTYPE MODE SYSTEM "xmode.dtd"> <MODE> <PROPS> <PROPERTY NAME="commentStart" VALUE="<!--" /> <PROPERTY NAME="commentEnd" VALUE="-->" /> </PROPS> <RULES IGNORE_CASE="TRUE"> <!-- SGML comment --> <SPAN TYPE="COMMENT1"> <BEGIN><!--</BEGIN> <END>--></END> </SPAN> <!-- JavaScript --> <SPAN TYPE="MARKUP" DELEGATE="JAVASCRIPT"> <BEGIN><SCRIPT</BEGIN> <END></SCRIPT></END> </SPAN> <!-- stylesheet --> <SPAN TYPE="MARKUP" DELEGATE="CSS"> <BEGIN><STYLE</BEGIN> <END></STYLE></END> </SPAN> <!-- DTD instructions --> <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS"> <BEGIN><!</BEGIN> <END>></END> </SPAN> <!-- markup tags --> <SPAN TYPE="MARKUP" DELEGATE="TAGS"> <BEGIN><</BEGIN> <END>></END> </SPAN> <!-- SGML entities --> <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE"> <BEGIN>&</BEGIN> <END>;</END> </SPAN> </RULES> <!-- ESCAPE is not exactly right but it is needed to correctly handle JavaScript in on* parameters --> <RULES SET="TAGS" DEFAULT="MARKUP" ESCAPE="\"> <SPAN TYPE="LITERAL1"> <BEGIN>"</BEGIN> <END>"</END> </SPAN> <SPAN TYPE="LITERAL1"> <BEGIN>'</BEGIN> <END>'</END> </SPAN> <SEQ TYPE="OPERATOR">=</SEQ> </RULES> <RULES SET="JAVASCRIPT" DEFAULT="MARKUP" IGNORE_CASE="TRUE"> <SEQ TYPE="MARKUP" DELEGATE="javascript::MAIN">></SEQ> <!-- handle <SCRIPT SRC="..."> properly --> <SEQ TYPE="MARKUP" DELEGATE="BACK_TO_HTML">SRC=</SEQ> </RULES> <RULES SET="BACK_TO_HTML" DEFAULT="MARKUP"> <SEQ TYPE="MARKUP" DELEGATE="html::MAIN">></SEQ> </RULES> <RULES SET="CSS" DEFAULT="MARKUP"> <SEQ TYPE="MARKUP" DELEGATE="css::MAIN">></SEQ> </RULES> </MODE>