language parameter to enable language-aware highlighting for Python, JavaScript, TypeScript, SQL, Bash, JSON, HTML, CSS, YAML, and Markdown.
Basic Usage
Multiple Languages
Dynamic Content
Code content supports interpolation, so you can display server-generated output:API Reference
Code Parameters
Code content. Can be passed as a positional argument.
Language for syntax highlighting. Supported:
python, javascript/js, typescript/ts, json, bash/sh, sql, html, xml, css, yaml/yml, markdown/md.Additional Tailwind CSS classes.
Protocol Reference
Code