SyntaxHighlightingComponentGrammarFactoryParams.requirePrismLanguage method
SyntaxHighlightingComponentGrammarFactoryParams › requirePrismLanguage
Returns the grammar of an already registered Prism language, for nesting into the built grammar.Signature:
requirePrismLanguage(language: string): GrammarParameters:
| Parameter | Type | Description |
|---|---|---|
| language | string | The language to look up. |
Returns: Grammar — The grammar of the language.