Menu
#Code Blocks
#TypeScript
export function hello(name: string) {
return `Hello ${name}`
}#TSX
Languages load on demand, so anything Shiki supports works:
export function Greeting({ name }: { name: string }) {
return <h1>Hello {name}</h1>
}#JSON
{
"name": "synz-docs",
"runtime": "bun"
}#Bash
bun run dev#Plain Text
A block with no language, or one Shiki doesn't know, is shown as plain text. HTML in it is escaped, not rendered:
<script>alert('not run')</script>All syntax highlighting is powered by Shiki.