rememberSyntaxHighlightVisualTransformation
fun rememberSyntaxHighlightVisualTransformation(text: String, language: Language, theme: SyntaxTheme = LocalSyntaxTheme.current): VisualTransformation
Returns a VisualTransformation that paints syntax highlighting onto a legacy BasicTextField whose text equals text. Pass it straight to BasicTextField's visualTransformation parameter; the clamp against the live text is internal, so a stale highlight can never produce an out-of-range offset.