Skip to main content

Add Language to Code Block

LinkDescription
Prism Supported LanguagesList of supported programming languages for code blocks.
Docusaurus Default Supported LanguagesAdding more Prism-supported languages to Docusaurus.

Adding a Prism Supported Language to Docusaurus Code Blocks​

By default, Docusaurus comes with a subset of commonly used languages. To add powershell as a supported language for exampel, add the following to the docusaurus.config.js file.

docusaurus.config.js
export default {
// ...
themeConfig: {
prism: {
additionalLanguages: ["powershell"],
},
// ...
},
};