Is highlighting C# "verbatim string literal" possible?

Oleg Shilo
2014-02-06
2014-02-14
  • 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,
    Oleg

     
  • 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?

    CChris

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

    Oleg