Post by Hong XuPost by Mosè GiordanoHi Hong,
Post by Hong XuHi all,
A common trick that people use to comment out a region is using
"\iffalse" and "\fi".
How can I achieve this,
Perhaps playing with `font-latex-syntactic-keywords-extra', see for
example the file style for comment package.
Post by Hong Xuand do you think it's a good idea to include
this feature in auctex?
I think that currently AUCTeX knows nothing about conditionals in
general. I'm not sure it's worth starting from fontification of this
very particular case.
Are you still interested in this :)
Sorry for butting in. I have a macros.tex file where I collect all commonly used \usepackages, \newcommands and so forth. Based on advice received via this mailing list, I inserted the following at the beginning of the file:
---------------------------------------------------------------------------
% Following workaround required in order to get auctex to parse this file
% and update auto/macros.el properly.
\iffalse
\documentclass{article}
\begin{document}
\fi
---------------------------------------------------------------------------
There's a matching \iffalse \end{document} \fi at the end of the file.
I don't know if this workaround is still required, but I suspect it will no longer work once AUCTeX starts interpreting conditionals, so I have selfish motives for hoping a little that things will remain as they are.