Skip to content

Commit

Permalink
Use a monospaced font for LINQPad logging output. (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger authored and AndreyAkinshin committed Oct 17, 2018
1 parent 330f66c commit 10fdd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BenchmarkDotNet/Loggers/LinqPadLogger.cs
Expand Up @@ -57,7 +57,7 @@ private LinqPadLogger(MethodInfo withStyle, IReadOnlyDictionary<LogKind, string>
public void WriteLine(LogKind logKind, string text) => Write(logKind, Console.WriteLine, text);

private void Write(LogKind logKind, Action<object> write, string text) =>
write(WithStyle(text, "color:" + GetColor(logKind)));
write(WithStyle(text, "color:" + GetColor(logKind) + ";font-family:Consolas,'Lucida Console','Courier New',monospace"));

private object WithStyle(object data, string htmlStyle) =>
withStyle.Invoke(null, new[] { data, htmlStyle });
Expand Down

0 comments on commit 10fdd09

Please sign in to comment.