New issue
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
support ANSI color output of pkl eval
#425
Comments
I use bat whenever I need better syntax highlighting in my output. E.g. The It'd be good to colorize the output in case of errors, though. |
Would it be possible to support pluggable highlighters that are told which renderer is used? |
Might be doable to have the renderers themselves add ANSI escape sequences. Would need to somehow know whether the CLI command is being run in interactive mode or not. Generally CLI commands should strip colors if run in a non-interactive context (e.g. |
I was watching Viktor's review of pkl and the lack of syntax highlighting shouted me when running
pkl eval
on the command line.I'm so used to color based syntax highlighting in all languages it really shouts to me when there's no color
I wonder if we should have an optional colour option to
pkl eval
that could use ANSI colours to make the output look nicer?The text was updated successfully, but these errors were encountered: