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

This question already has an answer here:

if(!/^https?:\/\//.test(val) && foo == 'bar') {
    val = 'http://' + val;
}

As you can see, the // causes the highlighter to switch to comment mode which is incorrect.

share|improve this question

marked as duplicate by ben is uǝq backwards, ChrisF Jun 16 '13 at 10: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.

1 Answer 1

up vote 4 down vote accepted

This is an issue with Google Prettify, I think.

I've submitted a bug report.

Update: resolved

share|improve this answer

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