From: Tim H. <hof...@hi...> - 2012-05-08 17:59:25
|
> -----Ursprüngliche Nachricht----- > Von: Matthias Pospiech [mailto:mat...@gm...] > Gesendet: Dienstag, 8. Mai 2012 19:26 > > Am 08.05.2012 11:40, schrieb Tim Hoffmann: > > As Benito said, the file extension list for tex files is separate. Dtx > > has to be added there manually. Also the qnfa has to be added to the > > resource file (texstudio.qrc), so that it is available at runtime. > > I commit the necessary changes to the svn. Thanks for your contribution. > Thank you, but unfortunately (since I could not test it ) the coloring is wrong. > The % should be colored in orange, but anything after the % must be treated as > normal tex code and be colored accordingly. Currently everthing is orange. I don't know the specifications for the dtx format, but if it is just a single token, not defining an environment, you should use <word>. See e.g. the entry for "align-ampersand". N.b.: It might be, that not everything is drawn as in the tex file, even if you'd exactly copy the tex.qnfa. This is simply because some additional processing (e.g. syntax checking etc.) has to be done inside TXS and cannot be covered by the language definition. I think this is currently only performed for tex files. |