renderSnippet
renderSnippet(
snippet,language,className?):HTMLPreElement
Defined in: extensions/autocomplete/utils.ts:154
Parameters
Section titled “Parameters”snippet
Section titled “snippet”string
String of code to highlight.
language
Section titled “language”string
Language to highlight the snippet with.
className?
Section titled “className?”string
Additional classes to add to the <pre> element.
Returns
Section titled “Returns”HTMLPreElement
<pre><code> element with the snippet highlighted using the specified
language.