This demonstrates using the code-block tag plus prism for syntax highlighting.

Note that the example also uses @substrate-system/a11y to hide the text label for the copy button.