pub fn highlight(
ctx: &Context,
style: &Style,
theme: &CodeTheme,
code: &str,
language: &str,
) -> LayoutJob
Expand description
Add syntax highlighting to a code string.
The results are memoized, so you can call this every frame without performance penalty.