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
+3-3
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ in your templates:
23
23
Then simply register the plugin with Vue:
24
24
25
25
```js
26
-
Vue.use(hljsVuePlugin());
26
+
Vue.use(hljsVuePlugin);
27
27
```
28
28
29
29
@@ -36,13 +36,13 @@ import vuePlugin from "@highlightjs/vue-plugin";
36
36
37
37
hljs.registerLanguage('javascript', javascript);
38
38
39
-
Vue.use(vuePlugin());
39
+
Vue.use(vuePlugin);
40
40
```
41
41
42
42
Note: This plugin imports `lib/core` internally (but no languages). Thanks to the magic of ES6 modules you can import Highlight.js anywhere you need in order to register languages or configure the library. Or can also simply use the "common" languages (as of v11):
0 commit comments