Skip to content

Commit 7cecdba

Browse files
authored
Update README.md
1 parent cf5cad8 commit 7cecdba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ hljs.registerLanguage('javascript', javascript);
3939
Vue.use(vuePlugin);
4040
```
4141

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):
42+
Note: The plugin imports `highlight.js/lib/core` internally (but no languages). Thanks to the magic of ES6 modules you can import Highlight.js anywhere to register languages or configure the library. Any import of Highlight.js refers to the same singleton instance of the library, so configuring the library anywhere configures it everywhere.
43+
44+
You can also simply load all "common" languages at once (as of v11):
4345

4446
```js
4547
import hljs from 'highlight.js/lib/common';

0 commit comments

Comments
 (0)