Is highlighting C# "verbatim string literal" possible?

Oleg Shilo
  • Oleg Shilo

    Oleg Shilo - 2014-02-06

    Unfortunately out of box C# highlighting does not handle verbatim-string-literal.

    "hello" - regular-string-literal
    @"hello" - verbatim-string-literal

    It is my understanding that this is because the default C# lexer (in fact C++ lexer) does not recognize verbatim-string as a string.

    I hope that I am wrong and there is a simple way to solve the problem. I really do not want to resort to recompiling the lexer.

    Did anyone solved (or tried to solve) this problem before?

    Any suggestions will be appreciated,

  • cchris

    cchris - 2014-02-08

    On the Styler Configurator, when choosing C++, there is a VERBATIM style on the right hand list. Doesn't that help?


  • Oleg Shilo

    Oleg Shilo - 2014-02-14

    Silly me, it was just in front of me and I didn't notice it. :o)

    Thank you very much. It is exactly what I was looking for.



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks