[Request] Code highlighting for official GO docs

Hi Folks,

It would be really helpful for partially-sighted individuals (and for general readability in my view) to introduce the option of stronger syntax highlighting to the Go Docs (tutorials and std library - Documentation - The Go Programming Language).

Some of the examples become difficult to read as a simple block of white text on a grey background. There is also a lack of consistency across the docs. Sometimes comments are represented in green, sometimes in white. I think this needs to be sorted.

Is there any particular reason we don’t do this?

I find it genuinely difficult to read sometimes. It would also significantly help folks who are new to the language and learn spatially / visually.

Thanks,
Jordan

1 Like

I think this is something others have suggested previously too. There a fairly long running issue ticket here which discusses the challenges involved.

Personally, I’d love to see something in this space too, though I know code highlighting is a highly personal thing, so whatever solution they land on would probably need to have few choices (dark on light, light on dark, plus few others etc)

1 Like