Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/pkgsite: Adding syntax highlight support #54327

Closed
laoshaw opened this issue Aug 7, 2022 · 1 comment
Closed

x/pkgsite: Adding syntax highlight support #54327

laoshaw opened this issue Aug 7, 2022 · 1 comment

Comments

@laoshaw
Copy link

laoshaw commented Aug 7, 2022

Golang is designed for beginner friendly, many many beginners like syntax highlight, in fact nearly all other languages(cppreference, rust, python, javascript,...) are having syntax highlight in their doc and websites, golang remains probably the only main stream language that insists its boring plain text for code contents. Some senior Go developers might dislike syntax highlight, but many of us can not live without it, just like the rest of nearly all other main languages. can you please at least make that an opt-in feature? Thank you.

What is the URL of the page with the issue?

https://pkg.go.dev/
https://go.dev/tour/welcome/1
run godoc from command line to read doc

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Screenshot

image

What did you do?

just read documents and use tours of go

What did you expect to see?

all code snippets should be syntax highlighted

What did you see instead?

it's plain text

@laoshaw laoshaw added the pkgsite label Aug 7, 2022
@gopherbot gopherbot added this to the Unreleased milestone Aug 7, 2022
@seankhliao
Copy link
Member

Duplicate of #52198

@seankhliao seankhliao marked this as a duplicate of #52198 Aug 7, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2022
@golang golang locked and limited conversation to collaborators Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants