Skip to content

SyntaxHighlightingComponentRegisterPrismLanguageParams

Parameters for SyntaxHighlightingComponent.registerPrismLanguage.

Import:

import type { SyntaxHighlightingComponentRegisterPrismLanguageParams } from 'obsidian-dev-utils/obsidian/components/syntax-highlighting-component';

Signature:

export interface SyntaxHighlightingComponentRegisterPrismLanguageParams

Properties

PropertyTypeDescription
grammarSyntaxHighlightingComponentGrammarSourceThe grammar to register.
languagestringThe language to register the grammar as.