This question already has an answer here:

The title really says it all, but when I use the @ character to ignore escapes in a string literal @"Like This\", the \" is interpreted as a quote character belonging to the string rather than the terminating quote.

share|improve this question
add comment (requires an account with 1 reputation)

marked as duplicate by ben is uǝq backwards, Rory, animuson, Lucifer, Hugo Dozois Jun 16 at 5:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 3 down vote accepted

That's an issue with google-code-prettify, which Stack Overflow uses, and is not something the Stack Overflow team are likely to remedy.

That said, google-code-prettify is open-source - so feel free to go fix it!

share|improve this answer
add comment (requires an account with 1 reputation)

Testing

string test1 = @"Like This\";
string test2 = "Like This\\";
share|improve this answer
add comment (requires an account with 1 reputation)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged