You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,24 +11,19 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/e9c59b1d029a49e0b89d296ffc33
11
11
12
12
## Installation
13
13
14
-
**Yarn**
15
-
16
14
```bash
15
+
# Yarn
17
16
yarn add -D svelte-highlight
18
-
```
19
17
20
-
**NPM**
21
-
22
-
```bash
18
+
# npm
23
19
npm i -D svelte-highlight
24
-
```
25
-
26
-
**pnpm**
27
20
28
-
```bash
21
+
# pnpm
29
22
pnpm i -D svelte-highlight highlight.js
30
23
```
31
24
25
+
Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js` as a development dependency.
26
+
32
27
## SvelteKit Set-up
33
28
34
29
To use this library with [SvelteKit](https://github.com/sveltejs/kit) or [vite](https://github.com/sveltejs/vite-plugin-svelte), instruct vite to optimize `highlight.js` and `highlight.js/lib/core`:
0 commit comments