( code: string, grammar?: SyntaxGrammar )
| 343 | |
| 344 | /** Return a style span of the input code */ |
| 345 | export function highlightCodeSpan( |
| 346 | code: string, |
| 347 | grammar?: SyntaxGrammar |
| 348 | ): StyledSpan[] { |
| 349 | const spans = parseCode(code, grammar); |
| 350 | return renderCode(spans); |
| 351 | } |
| 352 | |
| 353 | /** Return a style block of the input code, including a |
| 354 | * gutter with line numbers and an optional highlighted line |
nothing calls this directly
no test coverage detected