Skip to content

SyntaxHighlightingComponentGrammarFactoryParams.requirePrismLanguage

SyntaxHighlightingComponentGrammarFactoryParams › requirePrismLanguage

Type: (language: string) => Grammar

Returns the grammar of an already registered Prism language, for nesting into the built grammar.