Menu

#275 Error in Syntaxhighlighting Texniccenter 2 Alpha

open
nobody
6
2013-11-30
2010-03-25
kurt
No

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).

Discussion

  • mike

    mike - 2010-06-14

    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)..

     
  • mike

    mike - 2010-06-14

    oh, and I consider this a major bug, please increase priority to at least 7!

     
  • mike

    mike - 2010-06-14

    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.

     
  • Sergiu Dotenco

    Sergiu Dotenco - 2010-10-13

    The described error has been added to the official bug list.

    Thank you for your report.

     
  • Sergiu Dotenco

    Sergiu Dotenco - 2010-10-13
    • labels: --> Syntax Highlighting
     
  • Tino Weinkauf

    Tino Weinkauf - 2012-11-04

    Verified Beta 1

     
  • Tino Weinkauf

    Tino Weinkauf - 2012-11-04
    • priority: 5 --> 6
     
  •  Malte Brunnlieb

    Malte Brunnlieb - 2013-11-30

    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.

     

Anonymous
Anonymous

Add attachments
Cancel