Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

When inserting a code sample the language is automatically detected. However, there seems to be a problem. This question for example, has VB code but instead of parsing comments (starting with ') as comments, they're treated as string literals.

Either detection is wrong, or it get the commenting wrong.

share|improve this question
Fixed. Actually for classic ASP it should be vbscript, not VB. – Shadow Wizard Oct 17 '12 at 11:42
up vote 6 down vote accepted

The highlighting you see on the VB code is most likely the highlighting of the detected Javascript before it. You can however insert a specific tag to enforce the correct highlighting of the code following it. This should do the trick:

<!-- language: lang-vb -->

Have a look at the following question for further details and explanation: Syntax highlighting language hints

share|improve this answer

You must log in to answer this question.

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