Skip to content

Commit 71cbe56

Browse files
authored
(doc) Import theme css in example (#22)
1 parent 02c4757 commit 71cbe56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ app.use(hljsVuePlugin)
4343
## Using ES6 modules / bundling
4444

4545
```js
46+
import 'highlight.js/styles/stackoverflow-light.css'
4647
import hljs from 'highlight.js/lib/core';
4748
import javascript from 'highlight.js/lib/languages/javascript';
4849
import hljsVuePlugin from "@highlightjs/vue-plugin";
@@ -59,6 +60,7 @@ Note: The plugin imports `highlight.js/lib/core` internally (but no languages).
5960
You can also simply load all "common" languages at once (as of v11):
6061

6162
```js
63+
import 'highlight.js/styles/stackoverflow-light.css'
6264
import 'highlight.js/lib/common';
6365
import hljsVuePlugin from "@highlightjs/vue-plugin";
6466

0 commit comments

Comments
 (0)