-
Notifications
You must be signed in to change notification settings - Fork 1
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
Print the {html}
operation in color
#7
Comments
Or a higher-level crate that's " |
Hmmm, one issue would be if there's another operation besides In any case, I'd like to have the HTML reformatted into a pretty indented tree no matter what: #8 |
{html}
operation{html}
operation in color
People could also just pipe to
|
Although, Bat doesn't always detect HTML, so you need to do |
The Syntect crate looks like a good option: https://docs.rs/syntect/3.2.1/syntect/html/fn.highlighted_html_for_string.html
We don't need every feature, just the
html
feature: https://github.com/trishume/syntect#feature-flagsIt looks like Syntect does not reformat (e.g adding indentation and newlines); it only adds syntax highlighting.
The text was updated successfully, but these errors were encountered: