All Downloads are FREE. Search and download functionalities are using the official Maven repository.

modes.tex.xml Maven / Gradle / Ivy

Go to download

This project aims to build a command line tool that can create HTML view with syntax highlighted source code. It uses Jedit syntax highlighting engine and support all languages that are supported in JEdit. Which are currently: ActionScript, Ada 95, ANTLR, Apache HTTPD, APDL, AppleScript, ASP, Aspect-J, Assembly, AWK, B formal method, Batch, BBj, BCEL, BibTeX, C, C++, C#, CHILL, CIL, COBOL, ColdFusion, CSS, CVS Commit, D, DOxygen, DSSSL, Eiffel, EmbPerl, Erlang, Factor, Fortran, Foxpro, FreeMarker, Fortran, Gettext, Groovy, Haskell, HTML, Icon, IDL, Inform, INI, Inno Setup, Informix 4GL, Interlis, Io, Java, JavaScript, JCL, JHTML, JMK, JSP, Latex, Lilypond, Lisp, LOTOS, Lua, Makefile, Maple, ML, Modula-3, MoinMoin, MQSC, NetRexx, NQC, NSIS2, Objective C, ObjectRexx, Occam, Omnimark, Parrot, Pascal, Patch, Perl, PHP, Pike, PL-SQL, PL/I, Pop11, PostScript, Povray, PowerDynamo, Progress 4GL, Prolog, Properties, PSP, PV-WAVE, Pyrex, Python, REBOL, Redcode, Relax-NG, RelationalView, Rest, Rib, RPM spec, RTF, Ruby, Ruby-HTML, RView, S+, S#, SAS, Scheme, SDL/PL, SGML, Shell Script, SHTML, Smalltalk, SMI MIB, SQR, Squidconf, SVN Commit, Swig, TCL, TeX, Texinfo, TPL, Transact-SQL, UnrealScript, VBScript, Velocity, Verilog, VHDL, XML, XSL, ZPT

The newest version!
<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<MODE>
	<PROPS>
		<PROPERTY NAME="lineComment" VALUE="%" />
		<PROPERTY NAME="wordBreakChars" VALUE="{}" />
	</PROPS>
	<RULES IGNORE_CASE="FALSE">
		<!-- $$...$$ -->
		<SPAN TYPE="MARKUP" DELEGATE="MATH">
			<BEGIN>$$</BEGIN>
			<END>$$</END>
		</SPAN>

		<!-- $...$ -->
		<SPAN TYPE="MARKUP" DELEGATE="MATH">
			<BEGIN>$</BEGIN>
			<END>$</END>
		</SPAN>

		<!-- \[...\] (LaTeX math mode) -->
		<SPAN TYPE="MARKUP" DELEGATE="MATH">
			<BEGIN>\[</BEGIN>
			<END>\]</END>
		</SPAN>

		<!-- some commands must be handled specially -->
		<SEQ TYPE="KEYWORD1">\$</SEQ>
		<SEQ TYPE="KEYWORD1">\\</SEQ>
		<SEQ TYPE="KEYWORD1">\%</SEQ>

		<!-- \iffalse ... \fi - a block comment -->
                <SPAN TYPE="COMMENT1">
                        <BEGIN>\iffalse</BEGIN>
                        <END>\fi</END>
                </SPAN>

		<!-- \begin{verbatim} ... \end{verbatim} -->
                <SPAN TYPE="KEYWORD1" DELEGATE="VERBATIM">
                        <BEGIN>\begin{verbatim}</BEGIN>
                        <END>\end{verbatim}</END>
                </SPAN>

		<!-- \verb|sometext| -->
		<SPAN TYPE="KEYWORD1" DELEGATE="VERBATIM"
			NO_LINE_BREAK="TRUE">
                        <BEGIN>\verb|</BEGIN>
                        <END>|</END>
                </SPAN>
		<!-- \... commands -->
		<MARK_FOLLOWING TYPE="KEYWORD1">\</MARK_FOLLOWING>

		<!-- comments -->
		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>

		<!-- word separators -->
		<SEQ TYPE="OPERATOR">{</SEQ>
		<SEQ TYPE="OPERATOR">}</SEQ>
		<SEQ TYPE="OPERATOR">[</SEQ>
		<SEQ TYPE="OPERATOR">]</SEQ>
	</RULES>

	<RULES SET="MATH" DEFAULT="MARKUP">
		<!-- some commands must be handled specially -->
		<SEQ TYPE="KEYWORD3">\$</SEQ>
		<SEQ TYPE="KEYWORD3">\\</SEQ>
		<SEQ TYPE="KEYWORD3">\%</SEQ>

		<!-- \... commands -->
		<MARK_FOLLOWING TYPE="KEYWORD3">\</MARK_FOLLOWING>

		<!-- word separators -->
		<SEQ TYPE="KEYWORD2">)</SEQ>
		<SEQ TYPE="KEYWORD2">(</SEQ>
		<SEQ TYPE="KEYWORD2">{</SEQ>
		<SEQ TYPE="KEYWORD2">}</SEQ>
		<SEQ TYPE="KEYWORD2">[</SEQ>
		<SEQ TYPE="KEYWORD2">]</SEQ>
		<SEQ TYPE="KEYWORD2">=</SEQ>
		<SEQ TYPE="KEYWORD2">!</SEQ>
		<SEQ TYPE="KEYWORD2">+</SEQ>
		<SEQ TYPE="KEYWORD2">-</SEQ>
		<SEQ TYPE="KEYWORD2">/</SEQ>
		<SEQ TYPE="KEYWORD2">*</SEQ>
		<SEQ TYPE="KEYWORD2">&gt;</SEQ>
		<SEQ TYPE="KEYWORD2">&lt;</SEQ>
		<SEQ TYPE="KEYWORD2">&amp;</SEQ>
		<SEQ TYPE="KEYWORD2">|</SEQ>
		<SEQ TYPE="KEYWORD2">^</SEQ>
		<SEQ TYPE="KEYWORD2">~</SEQ>
		<SEQ TYPE="KEYWORD2">.</SEQ>
		<SEQ TYPE="KEYWORD2">,</SEQ>
		<SEQ TYPE="KEYWORD2">;</SEQ>
		<SEQ TYPE="KEYWORD2">?</SEQ>
		<SEQ TYPE="KEYWORD2">:</SEQ>
		<SEQ TYPE="KEYWORD2">'</SEQ>
		<SEQ TYPE="KEYWORD2">"</SEQ>
		<SEQ TYPE="KEYWORD2">`</SEQ>

		<!-- comments -->
		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
	</RULES>

	<RULES SET="VERBATIM" DEFAULT="NULL" />
</MODE>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy