how to load all languages one times #2962
-
https://prismjs.com/#supported-languages languages is to much import 'prismjs/components/prism-python.min'; // python
import 'prismjs/components/prism-javascript.min'; //js
import 'prismjs/components/prism-css.min'; //css
... how to load all languages one times, like this prismjs.loadALL_languages() |
Beta Was this translation helpful? Give feedback.
Answered by
RunDevelopment
Jun 22, 2021
Replies: 1 comment 1 reply
-
Currently, there are 2 ways of doing this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, there are 2 ways of doing this:
Go to our download page, select all languages, and download the build.
This will give you all languages and work in all environments (Node, browser, etc.).
Use
loadLanguages
.Calling
loadLanguages()
without arguments will load all languages. However, this is intended to be used with Node.js.