From: Tim H. <hof...@hi...> - 2012-03-25 17:06:47
|
> Sorry, but that documentation does not help me at all. > > I need some examples for those cases that I posted in the last email so that I > can fill up the missing pieces. Can you please specify your problem a bit more. You can find examples in the tex.qnfa e.g. for your "control sequences": <sequence id="keywords/single" ambiguous="true" format="keyword">\\[a-zA-Z@]+</sequence> For your "special characters (comment part)": <context id="comment/single" format="comment" stayOnLine="true" > <start>%</start> <stop exclusive="false">\n</stop> </context> Your formatting looks just like regexps. The qnfa specification also supports that (see keyword example above) but is more general and has more options (see the documentation). N.b.: id and format attributes are labels you have to provide. Id is probably irrelevant for your cases (just make up some name). You may reuse existing formats. If you define new ones, you have to add them to defaultFormats.qxf |