Highlight
Highlighting built for the web.
Fast syntax highlighting that keeps your bundles small and your code looking good.
Only pay for the languages you need.
Start with a tiny core, bring the languages you actually use, and leave the rest out of your bundle. Change your mind about the colors? CSS has you covered.
Minified browser source-entry builds, measured October 1, 2026 with Node 26.3.1. Sizes vary with imports and build tools. Measurement details
A fresh coat of paint.
Go dark, go light, or offer a whole menu of themes with CSS variables, all using the same markup without shipping extra copies or highlighting everything again.
const
</span>
--th-keyword: #a21caf
--th-keyword: #f0abfc
Go ahead, mix your languages.
Put JavaScript in your HTML, CSS in your Vue components, or mix them together like you normally do, and we’ll highlight the languages right where they are.
const score: number = 0.98
</script>
Web
TS · TSX · JS · JSX · CSS · HTML
Content
Markdown · JSON · YAML · TOML
Shell
Bash · Shell · Zsh
Frameworks
Vue · Svelte · EJS · TSRX (Octane)
Dim the lights and get your point across… or underlined, too.
Make changed lines pop, fade everything around them, or underline the bit you’re explaining with annotations you control and CSS that makes it yours.
BYO Markdown.
Add syntax highlighting to TanStack Markdown, Remark, Rehype, Octane MDX, or whatever you’re building with, using a ready-made integration or wiring it up your way.
Parse and render Markdown, then add syntax highlighting with a callback.
Explore MarkdownPartners
Sponsors get special perks like private discord channels, priority issue requests, and direct support!