Skip to content

renderSnippet

renderSnippet(snippet, language, className?): HTMLPreElement

Defined in: extensions/autocomplete/utils.ts:154

string

String of code to highlight.

string

Language to highlight the snippet with.

string

Additional classes to add to the <pre> element.

HTMLPreElement

<pre><code> element with the snippet highlighted using the specified language.