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.

I noticed that on StackOverflow, a question which used the @ sign to denote a string literal ie

string TheClosingQuoteSOULDBeEscaped = @"c:\";
string ButTheSyntaxHighlightingMissesIt = "another string";

Doesn't properly handle the string literal and instead thinks the slash at the end of line one is meant to escape the last quote, leading to a mega quote that spans the whole code block. I saw this in the question listed below:

Running Command line from an ASPX page, and returning output to page

EDIT

The system works!!! The ticket I opened with Google was just resolved! The project owner, mikesamuel, fixed it in under four days. Its in revision 83. As long as the SO team updates with the next release, this problem is solved.

share|improve this question
1  
This is all Google's fault. I say we march over there and tell them off. –  XMLbog Sep 29 '09 at 16:31
    
Oh, does SO use Google for syntax highlighting? If so, I guess that doesn't bode well for my bug getting fixed. You don't think they scan forums looking for stuff to do? –  Michael La Voie Sep 29 '09 at 16:40
    
They will if we tell them off enough! –  XMLbog Sep 29 '09 at 16:55
1  
We're all behind you, Welbog! ...Wayyy behind you. –  mmyers Sep 29 '09 at 17:08
2  
@mmyers: Your waffly support will not go unsyrupped. –  XMLbog Sep 29 '09 at 17:10
    
+1 for reporting the issue to Google, as indicated in your comment to Jeff. –  ベレアー アダム Sep 29 '09 at 17:44
2  
Should this be "reopened" or flagged of some sort? Typing string a = @"dir\"; string b = "hello"; does not work when I type it.. :-( Or did google do a rollback for the support of the @-sign? –  Patrick Jun 15 '10 at 9:13
    
bug is still confirmed... –  Vogel612 Jul 2 '13 at 11:50
add comment

1 Answer

up vote 4 down vote accepted

Yes, this has to be fixed in google-code-prettify first.

OK, we just deployed the latest trunk of prettify.js ; revision 83

http://code.google.com/p/google-code-prettify/source/browse/trunk/src/prettify.js

share|improve this answer
3  
I opened an issue ticket: code.google.com/p/google-code-prettify/issues/detail?id=93 –  Michael La Voie Sep 29 '09 at 17:14
2  
Fixed in revision 83 code.google.com/p/google-code-prettify/source/detail?r=83 –  Factor Mystic Oct 4 '09 at 1:59
add comment

You must log in to answer this question.

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