11

Have looked at What is syntax highlighting and how does it work? and in my opinion Classic ASP should fall into the <!-- language: lang-vb --> hint.

Being active in the tag questions I've noticed that a lot of them don't show the code syntax highlighting correctly.

What does Markdown currently do with Classic ASP code, the majority of which are usually but even that doesn't appear to highlight correctly.

I've found myself editing code blocks and adding

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

Update:

Not sure below is appropriate as @ChrisF ♦ has confirmed the code hint

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

is already associated with .

Is this something that could be associated to either or tags? It might make more sense to associate it with because can use other scripting engines besides .

If it was associated to it would save a lot of meaningless edits.

8
  • 1
    The problem is that you have two entirely separate types of code, the VBScript code, and the markup code. Each requires different code highlighting logic. This is the same problem that many web-based development tags have in which it has code blocks that can be HTML, CSS, Javascript, VBScript, etc. in different code blocks (possible multiple different ones within a single question).
    – Servy
    May 8, 2014 at 20:38
  • Sorry @Servy I'm must be missing the point? Most asp-classic code samples are straight vbscript (with the exception <% and %> around them, which Markdown seems to handle ok anyway). If someone posted a large HTML page with ASP littered through it I wouldn't take a second glance, it can stay as is.
    – user692942
    May 8, 2014 at 20:45
  • The tag vbscript already has the lang-vb language associated with it.
    – ChrisF Mod
    May 26, 2014 at 14:46
  • @ChrisF Thanks for confirming, just notice when a question contains vbscript and asp-classic it doesn't always apply the <!-- language: lang-vb --> hint as I'd expect.
    – user692942
    May 26, 2014 at 14:54
  • @Lankymart - That might be down to the other tags on the question.
    – ChrisF Mod
    May 26, 2014 at 14:55
  • 3
    @ChrisF: Can I ask how this association is established in the first place? I was going to create a question/feature-request on Meta about this but you might be able to resolve it without needing to go that far. Right now the GLSL tag should really be associated with C syntax highlighting, but no such association exists. I was hoping it might be something as simple as adding <!-- language: lang-c --> to the tag wiki, but that is not how it works in the vbscript tag. Is this something that is hidden from normal users and not editable otherwise? Jun 12, 2014 at 16:59
  • 4
    @Andon it's a moderator only option. Raise a feature request question.
    – ChrisF Mod
    Jun 12, 2014 at 17:31
  • We need one for the python-fu tag too, its still a pretty fresh tag by the looks of it.
    – jxramos
    Feb 20, 2015 at 23:22

1 Answer 1

1

As your edit points out, this is done for the tag already. All questions with this tag will automatically be highlighted using the VB language highlighter.

It wouldn't be appropriate to apply the same treatment to the tag, since, looking at those questions, they tend to show code snippets from a variety of languages other than VB. If VB syntax highlighting is appropriate, the question should have some tag that suggests they're writing VB code.

As such, I'm declaring that this has been . As mentioned in the comments, if you see other tags that need to have their default syntax highlighting mode enabled or changed, please post a new feature request.

You must log in to answer this question.

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