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.

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
1  
Fixed. Actually for classic ASP it should be vbscript, not VB. –  Shadow Wizard Oct 17 '12 at 11:42

1 Answer 1

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 .