AffectedSourceHelper¶
-
public class
AffectedSourceHelper
¶ Helper class for highlighting code in consoles.
Methods¶
affectedSourceText¶
-
public static String
affectedSourceText
(ISourceRegion region, String sourceText, String indentation)¶ Returns a multi-line string that highlights the affected source code region, given the full source text and indentation to use.
Parameters: - region – Region in the source text that should be highlighted.
- sourceText – Full source text.
- indentation – Indentation to add to each line in the resulting string.
Returns: Multi-line string that highlights the affected source code region.