Error in Syntaxhighlighting Texniccenter 2 Alpha
A feature-rich environment for writing LaTeX documents on Windows
Brought to you by:
niteria,
svenwiegand
If you are using something like this in your LaTeX dokument:
\verb+\command % comment+ and so on.
Texniccenter is not able to recognize that there is no comment outside the two + signs. Texniccenter shows everthing after the % in gray (comment).
Anonymous
Verified (Alpha 3), it is especially annoying when you write variable names with a dollar sign in front:
\verb+$myVar+
This will color the rest of your *whole document* (unless there is another single dollar sign somewhere later on of course)..
oh, and I consider this a major bug, please increase priority to at least 7!
Sorry for posting a third time, but I only noticed that now:
The same holds for the verbatim environment and also e.g. for the lstlisting environment from the listings package. This may be a bit harder to fix and at least there is a workaround there (putting the code in an external file and use the verbatim package or the corresponding lstinputlisting command).
But it would be great if that could be fixed too, of course.
The described error has been added to the official bug list.
Thank you for your report.
Verified Beta 1
I am observing the same issue in 2.0 Beta 2 for the $ sign.
For me it is an \lstinline!${...}! which causes the rest of the document highlighted green.