How to dump customize styles?

I have a set, and I want to show the colors according to different conditions


  • You could use Util.Highlight() to change the color of the items you output. Or if you want more control, use Util.RawHtml().
    var colors = new[]
    colors.Select(c =>
        Util.Highlight($"The color {c}", c)
    colors.Select(c =>
            new XElement("div",
                new XAttribute("style", $"color: {c};"),
                $"The color {c}"
Sign In or Register to comment.