@motion-script/code / compileStyle
Function: compileStyle()
compileStyle(
style):Highlighter
Defined in: components/code/src/style.ts:243
Compile a CodeHighlightStyle into a @lezer/highlight Highlighter
whose "class" output is the literal color string for each tag. Cached by style
name so repeated lookups (every tokenize) don't rebuild the matcher.
Parameters
style
Returns
Highlighter