showInSource

fun showInSource(highlightStyle: Style, contextLines: Int = if (start.line == end.line) 0 else 1): Document

Displays the portions of the source file containing this location and highlights the region corresponding to this location.

Parameters

highlightStyle

Style to use for highlighting.

contextLines

Number of lines before and after the relevant region to display to give more context to the user.