I've run into some unexpected syntax highlighting mistakes while I was asking a question about VB6.

When I use _ after using ' to add comments about my code I see that _ does not work within ', but it should.

Here is a screenshot demonstrating the situation:


2 Answers 2


Stack Exchange sites are using Google Code Prettify JavaScript module to have those nice colors, so that's actually a problem/bug with "their" code.

Similar case has already been reported:
Syntax highlighting for C doesn't properly recognize `restrict` as a keyword

(Similar in the sense of problem with Prettify)

  • i see now, ty for leading me to the right direction. Commented Feb 7, 2012 at 9:31

This is fixed in prettify at revision 203. A new release will be forthcoming soon.

  • thanks i cant wait for the new release. Commented Apr 2, 2012 at 7:04

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