VHDL is a language supported by Prettify. Could the tag have <!-- language: lang-vhdl --> associated with it by default?

It appears that others have this concern too.

VHDL syntax highlighting doesn't appear to be working. Should it be?

lang-vhdl.js was listed here, but it doesn't work automatically with my question tagged as , or manually when I specify <!-- language: vhdl -->.

  • @balpha I removed the <!-- language: from the question and the syntax appears to be working correctly, automatically now. Thanks. – Jonathon Reinhart Oct 5 '13 at 18:06

What's happening in the first case, using <!-- language: vhdl -->, is that you're requesting the default syntax highlighting associated with the tag (which shouldn't even be necessary, since the question already has that tag). Since you're not getting what you expect when you do this, it stands to reason that there is no default syntax highlighting specified for this tag.

When you change the syntax highlighting hint to <!-- language: lang-vhdl -->, you're explicitly requesting syntax highlighting for VHDL, regardless of the question's tags and overriding the default.
It's just as if you'd specified <!-- language: lang-java -->: you'd start getting Java syntax highlighting, even though it would be useless and nonsensical for the code blocks in that question. It is, however, useful for questions and answers that are liable to have code blocks in multiple supported languages (e.g. C# and VB.NET).

So the solution here is to get a moderator to update the syntax highlighting associated with the tag. (Assuming that my diagnosis is correct; I can't check what the default syntax highlighting for a particular tag is, but moderators can.)

  • 2
    "So the solution here is to get a moderator to update the syntax highlighting associated with the vhdl tag." -- Done. – balpha Oct 5 '13 at 8:53
  • If you're playing then there's Dart and MATLAB, which are both supported by Prettify but not SE @balpha. – ben is uǝq backwards Oct 5 '13 at 11:14
  • @benisuǝqbackwards Neither of the two are supported by Prettify. There are Prettify plugins for them. – balpha Oct 5 '13 at 11:17
  • Okay, terminology wrong but SE supports other Prettify plugins and could do the same for others (I assume?). Though, obviously makes it harder if you don't have them at the moment. – ben is uǝq backwards Oct 5 '13 at 11:19

You must log in to answer this question.

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