Allow fixed-width font for the results pane
Some multi-line strings are easier to read in a fixed width font; these are hard to read in LINQPad today.
-
Fabrice Lagrange commented
As Joe already says :
"You can write this as an extension method in My Extensions"
public static class MyExtensions
{
public static T DumpFixed<T> (this T toDump, string heading = null,
int? depth = null)
{
Util.WithStyle (toDump, "font-family:consolas").Dump (heading, depth);
return toDump;
}
} -
Tom W commented
And backed by a Data Grid Result preference setting would be nice.
-
Asko Rupponen commented
My personal stylesheet customization is:
body {
font-family: "Lucida Console", Verdana;
font-size: 70%;
background: blue;
color: yellow;
} -
j2jensen commented
```
PanelManager.DisplaySyntaxColoredText(text, SyntaxLanguageStyle.None);
``` -
Adam Hall commented
@JimBob <3 I came here to make this same report, knowing that there's a fix made my hour.
-
JimBob McGee commented
You can go to Edit -> Preferences -> Results -> Style sheet for text (HTML) results -> Custom -> Launch Editor and add:
body { font-family: monospace; }
...to the the Customisations field.
OK/Apply and re-run your query...