Formatting
Attributes
- Graph
-
- Supertypes
- Self type
-
Formatting.type
Members list
Type members
Classlikes
General purpose string formatter, with the following features:
General purpose string formatter, with the following features:
- Invokes the
show
extension method on the interpolated arguments. - Sequences can be formatted using the desired separator between two
%
signs, egi"myList = (${myList}%, %)"
- Safe handling of multi-line margins. Left margins are stripped on the parts of the string context before inserting the arguments. That way, we guard against accidentally treating an interpolated value as a margin.
Attributes
- Supertypes
Value members
Concrete methods
Explicit syntax highlighting
Explicit syntax highlighting
Attributes
Explicitly highlight a string with the same formatting as used for keywords
Explicitly highlight a string with the same formatting as used for keywords
Attributes
This method will produce a colored type diff from the given arguments. The idea is to do this for known cases that are useful and then fall back on regular syntax highlighting for the cases which are unhandled.
This method will produce a colored type diff from the given arguments. The idea is to do this for known cases that are useful and then fall back on regular syntax highlighting for the cases which are unhandled.
Please not that if used in combination with disambiguateTypes
the correct Context
for printing should also be passed when calling the method.
Attributes
- Returns
-
the (found, expected, changePercentage) with coloring to highlight the difference