Open JTaets opened 1 year ago
AFAIK, you need to be using print to get strings with multiple styles. Something like the following doesn't work:
print
@assert false "This is an " * Crayon(foreground=:red)("error")
This throws an error:
no method matching *(::String, ::Crayons.CrayonWrapper)
Something like this works though
@assert false "This is an $(Crayon(foreground=:red)("error"))"
AFAIK, you need to be using
print
to get strings with multiple styles. Something like the following doesn't work:This throws an error: