This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiSlatePrism

SlatePrism() function

SlatePrism() function

A Slate plugin to highlight code syntax.

Signature

export declare function SlatePrism(optsParam?: OptionsFormat, prismLanguages?: Prism.LanguageMap): Plugin;

Import

import { SlatePrism } from '@grafana/ui';

Parameters

Parameter Type Description
optsParam OptionsFormat
prismLanguages Prism.LanguageMap

Returns:

Plugin