Join GitHub today
Feature Request: Print natively syntax-highlighted code to stdout. #1827
I feel like there must already be a way to do this, but I just can't figure it out.
What I'd like to do is have a function, lets call it, um,
I know there's functionality close to this already —
Is this possible?
Thanks for doing this @ridiculousfish! Three things:
The assertion failure should be fixed as 77a7dd8 - thanks for reporting it.
Yes, fish has some experimental support for 24-bit color, in the style used by iTerm2 and Konsole, as of b8181f9. Unfortunately there's no good way to check if the term supports it, so it's off by default for now. You can enable it by setting the variable
The CSS class names for colors are the same as the variable names, e.g.