A highlight library for Svelte 5 with Rune
npm install svelte-rune-highlight


Syntax highlighting for Svelte using highlight.js.
This lib is ported from Svelte-Highlight.
> 📦 v2.0 Breaking Changes
> Tailwind CSS classes have been removed from library components. The library is now completely CSS framework-agnostic.
> See MIGRATION.md for upgrade instructions.
``sh`
pnpm i -D svelte-rune-highlight highlight.js
Then in +layout.svelte
`svelte`
or use directly from cdnjs
`svelte`
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/dark.min.css"
/>
We use Vitest for unit testing and Playwright for E2E testing.
`bashRun all tests
pnpm test
See TESTING.md for detailed testing guide.
$3
Contributions are welcome! Please ensure:
1. All tests pass:
pnpm test
2. Code is formatted: pnpm format
3. No linting errors: pnpm lint
4. Types check: pnpm check`