Scrollable dump cell
I love Util.SyntaxColorText.
I often use it as a reportable property as below, but is it possible to make the cell that contains the dumped json scrollable so that very long json is contained?
void Main()
{
var json = """
{
"name": "John"
}
""";
new Thing()
{
SomeProperty = "Something",
RawJson = Util.SyntaxColorText(json.ToString(), SyntaxLanguageStyle.Json, autoFormat: true)
}.Dump();
}
public class Thing
{
public required string SomeProperty { get; set; }
public required LINQPad.SyntaxColoredText RawJson { get; set; }
}

Could there be some kind of LINQPad class like ScrollCell, something like this:
void Main()
{
var json = """
{
"name": "John"
}
""";
new Thing()
{
SomeProperty = "Something",
RawJson = new ScrollCell<LINQPad.SyntaxColoredText>
{
VisibleLines = 3,
Content = Util.SyntaxColorText(json.ToString(), SyntaxLanguageStyle.Json, autoFormat: true)
}
}.Dump();
}
public class Thing
{
public required string SomeProperty { get; set; }
public required ScrollCell<LINQPad.SyntaxColoredText> RawJson { get; set; }
}
public class ScrollCell<T>
{
public int VisibleLines { get; set; }
public required T Content { get; set; }
}
