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.

share|improve this question
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-Josiah Barber 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-Josiah Barber Jul 9 '12 at 11:03
add comment

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
Indeed, it works -- that was fast! Thanks for your help; this was a very pleasant first foray into the land of meta. –  Darshan-Josiah Barber Jul 9 '12 at 11:08
add comment

You must log in to answer this question.

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