highlightTree

fun highlightTree(tree: Tree, highlighter: Highlighter, putStyle: (from: Int, to: Int, classes: String) -> Unit, from: Int = 0, to: Int = tree.length)

Highlight the given tree with the given highlighter(s), calling putStyle for each styled range.


fun highlightTree(tree: Tree, highlighters: List<Highlighter>, putStyle: (from: Int, to: Int, classes: String) -> Unit, from: Int = 0, to: Int = tree.length)