[texworks] HELP with Tw 0.4.3 syntax highlighting
Stefan Löffler
st.loeffler at gmail.com
Thu Jul 14 16:54:45 CEST 2011
Hi,
On 2011-07-14 12:42, Carlo Marmo wrote:
> one more, very last , question. do you think it might be possible to
> get the same behaviour, adding a % at the beginning of a line
> containing "THESIS"? The structure "THESIS-EVIDENCE-CONCLUSION" just
> helps me to get a general picture of what I'm about to write, but I
> don't want it to appear in the final document, of course. So, I'd like
> to comment the lines where my custom structure appear, in my edit file.
> This might cause a conflict with the default "comment" format which
> is, as you know, # comments "redY%.*". My question is: is it possible
> to prevent this conflict, and get a differentiated comment-format, one
> for my custom "THESIS-EVIDENCE-CONCLUSION" structure (i.e.
> yellow/green), and the other from the default settings?
Sure. Whichever (applicable) rule is found first gets used. So the
general rule of thumb is to put very specialized rules (like your
%THESIS rule) at the beginning, and more general rules (like the general
% rule) later.
HTH
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20110714/051428d9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 611 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20110714/051428d9/attachment-0001.png>
More information about the texworks
mailing list