AKS-Construction icon indicating copy to clipboard operation
AKS-Construction copied to clipboard

Code block syntax highlighting

Open Gordonby opened this issue 3 years ago • 5 comments

The Wizard Web App uses a CodeBlock function for rendering language snippets (bash/tf/json).

It'd be great if this supported syntax highlighting to aid readability.

Gordonby avatar May 18 '22 16:05 Gordonby

Issue smells stale, no activity for 30 days. Stale Label will be removed if the issue is updated, otherwise closed in a month.

github-actions[bot] avatar Jun 20 '22 09:06 github-actions[bot]

Team, I have been exploring options for this. What do you think about using the monaco-editor replace the existing Code component.

I did a quick spike, and it looks pretty nice:

image

image

It's pretty configurable, giving us the option to tailor is as required.

Note: "The Monaco editor is not supported in mobile browsers or mobile web frameworks." <- we would need to test around this limitation

cc: @Gordonby @khowling

liammoat avatar Aug 10 '22 12:08 liammoat

@liammoat - That looks cool! 🎉🎉🎉🎉 I think regrading to the current experience for mobile would be workable.

Gordonby avatar Aug 10 '22 20:08 Gordonby

Issue smells stale, no activity for 30 days. Stale Label will be removed if the issue is updated, otherwise closed in a month.

github-actions[bot] avatar Sep 10 '22 09:09 github-actions[bot]

Issue smells stale, no activity for 30 days. Stale Label will be removed if the issue is updated, otherwise closed in a month.

github-actions[bot] avatar Oct 16 '22 09:10 github-actions[bot]