To Keep It Going, Please Show Your Love. Buy Me a Coffee at ko-fi.com

Svelte Rune Highlight: v0.5.9

Syntax highlighting for Svelte 5 Runes using highlight.js .

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

Components

Credit

Svelte-Highlight

Technical Details of this website