Skip to content

SyntaxHighlightingComponentGrammarFactoryParams.requirePrismLanguage method

SyntaxHighlightingComponentGrammarFactoryParams › requirePrismLanguage

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

Signature:

requirePrismLanguage(language: string): Grammar

Parameters:

ParameterTypeDescription
languagestringThe language to look up.

Returns: GrammarThe grammar of the language.