What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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

marked as duplicate by ben is uǝq backwards, Rory, animuson, Lucifer, Hugo Dozois Jun 16 '13 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.

add comment

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

Testing

string test1 = @"Like This\";
string test2 = "Like This\\";
share|improve this answer
add comment

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