A code highlighter for SvelteKit using highlight.js and TailwindCSS.
npm install svhighlightbash
pnpm add svhighlight
`
For this package you also need highlight.js:
`bash
pnpm add highlight.js
`
Additionally install TailwindCSS.
In your tailwind.config.cjs file add the following line "./node_modules/svhighlight/*/.svelte" to the content, so it looks like this:
`javascript
/* @type {import('tailwindcss').Config} /
module.exports = {
content: [
'./src/*/.{html,js,svelte,ts}',
"./node_modules/svhighlight/*/.svelte"
],
theme: {
extend: {},
},
plugins: [],
}
``