Never ship code samples without color. Or coffee.
Add language="js" to <wa-code-highlighter> and it paints the colors with the CSS Custom Highlight API, so your markup stays exactly as you wrote it. 40 languages, plus a copy button.
Never ship code samples without color. Or coffee. Add language="js" to <wa-code-highlighter> and it paints the colors with the CSS Custom Highlight API, so your markup stays exactly as you wrote it. 40 languages, plus a copy button.
0 vue
Publié le 03/12/2026 17:59
0:06
Never ship code samples without color. Or coffee.
Add language="js" to <wa-code-highlighter> and it paints the colors with the CSS Custom Highlight API, so your markup stays exactly as you wrote it. 40 languages, plus a copy button.
One element, and language="js" does the highlighting. Every color is a CSS custom property, so B.Y.O.E.T. (bring your own editor theme).