0.5.9 • Published 25 days ago
svelte-rune-highlight v0.5.9
Svelte Rune Highlight
Syntax highlighting for Svelte using highlight.js. This lib is ported from Svelte-Highlight.
Installation
Install Svelte 5 and enable runes in svelte.config.js:
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [vitePreprocess({})],
compilerOptions: {
runes: true
},
kit: {
adapters.
adapter: adapter()
}
};
export default config;
Install svelte-rune-highlight
:
pnpm i -D svelte-rune-highlight highlight.js
Docs
Highlight component
HighlightAuto component
HighlightSvelte component
Line numbers
Custom wrapper
Credit
0.5.9
25 days ago
0.5.8
1 month ago
0.5.7
1 month ago
0.5.6
1 month ago
0.5.4
1 month ago
0.5.3
1 month ago
0.5.5
1 month ago
0.5.2
1 month ago
0.5.1
1 month ago
0.5.0
1 month ago
0.4.0
2 months ago
0.3.1
2 months ago
0.3.0
2 months ago
0.2.6
3 months ago
0.2.5
3 months ago
0.2.4
3 months ago
0.2.3
3 months ago
0.2.2
3 months ago
0.2.1
3 months ago
0.2.0
3 months ago