Posts with the tag currently do not have syntax highlighting applied. When I manually set a code block's language with <!-- language: lang-go -->, the syntax highlighting works as expected.

As I understand things from reading this post, the implication is that the tag currently has a null syntax highlighting hint.

I propose that the tag have its highlighting hint set to lang-go.

  • According to that same post, prettify doesn't have a syntax highlighting scheme for Go, so lang-go doesn't exist. It looks like lang-go is being treated as lang-default when you add that hint to a post. – BoltClock's a Unicorn Jul 9 '12 at 10:48
  • @BoltClock'saUnicorn It's listed in that post as an extension, but it wasn't clear if that meant it was supported here or not. I pondered this, and then I noticed that Scala is also listed as an extension (both in that post and in the current Prettify repo), and Scala is one of the ones that Jeff included in his initial set. So my assumption is that the extensions are supported. If I'm only seeing the default formatting, that's still much better than no formatting, and my proposal remains the same. – Darshan Rivka Whittle Jul 9 '12 at 10:59
  • Oh, I didn't spot that. I checked, though, and don't see lang-go in the list of supported schemes. – BoltClock's a Unicorn Jul 9 '12 at 11:01
  • @BoltClock'saUnicorn Well, if it makes more sense to set the hint to default, then that works just as well. – Darshan Rivka Whittle Jul 9 '12 at 11:03

Although prettify lists Go as one of the extensions to its existing set of syntax highlighting scheme, I'm not seeing it in the list of schemes for the tag.

I can only assume that lang-go is essentially being treated as lang-default when you add the hint to a post in that case. I've changed it so posts tagged should now be syntax-highlighted.

  • 1
    Indeed, it works -- that was fast! Thanks for your help; this was a very pleasant first foray into the land of meta. – Darshan Rivka Whittle Jul 9 '12 at 11:08
  • I'm not getting any syntax highlighting when marking up a code block with <!-- language: lang-go --> ...has this regressed? – Anentropic Dec 30 '14 at 3:00
  • UPDATE: <!-- language: lang-golang --> works! – Anentropic Dec 30 '14 at 3:02

You must log in to answer this question.

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