# prism-svelte Syntax highlighting for svelte code with [prismjs]. ## install ```bash npm i prism-svelte # or yarn add prism-svelte ``` ## Usage Import `prismjs` then import `prism-svelte` (the order is very important) and it should work: ```js import Prism from 'prismjs'; import 'prism-svelte'; const source = `

{ count }

`; const highlighted = Prism.highlight(source, Prism.languages.svelte, 'svelte'); ``` [prismjs]: https://prismjs.com/