Highlighted Code

Code in a code block with copy, highlighted with Shiki in the theme’s own colours: syntax muted, values in the chart colour, and any text you name marked, such as a key to check. It highlights code as a model streams it.

Usage docs and preview are being generated by the coding agent. Registry metadata is shown meanwhile.
building preview…
The live preview has not been built yet.
See how it was built

Installation

pnpm dlx shadcn@latest add @dashboardblocks/highlighted-code

Requires @dashboardblocks in the registries of your components.json (shadcn adds official directory namespaces automatically).

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Highlighted Code" component (dashboardblocks/highlighted-code) from its shadcn registry.1. Install it with: npx shadcn@latest add @dashboardblocks/highlighted-code2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.

Files & dependencies

  • registry/components/dashboardblocks/highlighted-code.tsx→ @components/dashboardblocks/highlighted-code.tsx
dependenciesshiki@^4.5.0
registryDependenciescode-block

Looks similar, elsewhere

There is no screenshot of this item to compare yet.