-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/playground: support for syntax highlighting #34227
Comments
This was asked in the past. The most relevant discussion is at #28539. To sum it up:
Essentially: it appears that adding syntax colouring for the playground would be okay, but someone needs to do the work and without using a beefy 3rd party lib like the one the tour uses. |
Duplicate of #28539. |
#28539 is closed. This should be left open as the canonical reference for this work. |
I think we could base ourselves on MicroLight: https://asvd.github.io/microlight/ , but change it so it recognises Go code only specifically. This also has the advantage that it highlights syntax without using color, only using font effects or a literal highlight effect. |
If it can be made to look like the default vscode, that would be great. |
Is this issue still open? I would like to take a stab at this. |
It is still open but ALTree has requested that this should be implemented using a very light weight library. That's why I proposed MicroLight which has the advantage that it is tiny and it also works also for color blind people like myself because it uses syntax styling instead of colors. |
Currently, the playground is yellow background and black text, make it difficult to read the codes. Can you make codes colorful and bring editor to playground (like Wandbox) ?
The text was updated successfully, but these errors were encountered: