We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I really like crayons but it adds a bit of bloat syntactically. Would it be reasonable to suggest something like the following below?
using Crayons cols = "black, red, green, yellow, blue, magenta, cyan, light_gray, default, dark_gray, light_red, light_green, light_yellow, light_blue, light_magenta, light_cyan, white" fxs = "reset, bold, faint, italics, underline, blink, negative, conceal, strikethrough" for (col, fx) in Iterators.product( split(cols, ", "), split(fxs, ", ") ) name = Symbol(col * "_" * fx) global colsym = Symbol( col ) global fxsym = Symbol( fx ) @eval $colsym = colsym @eval $fxsym = fxsym @eval $name() = Crayon( foreground = $colsym, $fxsym = true) end print( magenta_italics(), "woah", cyan_underline(), " wooooo" )
Basically just make it a little less verbose so you don't end up with really long lines of code to print text?
The text was updated successfully, but these errors were encountered:
There are some hardcoded combinations in #38.
You can also use the string macro
Sorry, something went wrong.
Did I reinvent something already existing? if so just close this "issue".
No branches or pull requests
I really like crayons but it adds a bit of bloat syntactically. Would it be reasonable to suggest something like the following below?
Basically just make it a little less verbose so you don't end up with really long lines of code to print text?
The text was updated successfully, but these errors were encountered: