There is nothing broken.
There are multiple tags on that question. One of them is xml which has off-course the lang-xml
language hint. As that tag is waaaaay more popular than VB.NET it comes first. And with that it picks that prettify hint.
To force VB.NET highlighting add the explicit language hint <!-- language: lang-vb -->
before the appropriate code-block .
Remember that the hint needs to be on a single line with a blank line above and below it:
lorum ipsum
<!-- language: lang-vb -->
Public Sub VBRocks()
Print "Rocking" ' this highlighting works
End Sub
or use it with code fences:
```vb
Public Sub VBRocks()
Print "Rocking" ' this highlighting works
End Sub
```
Do note that the preview of the post can be off in corner cases.
Here is the result in action:
Public Sub VBRocks()
Print "Rocking" ' this highlighting works
End Sub
code fences:
Public Sub VBRocks()
Print "Rocking" ' this highlighting works
End Sub
''
(two quotes) is a simple workaround for single-line comments.