-
Notifications
You must be signed in to change notification settings - Fork 18
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
Syntax highlighting for code snippets #45
Comments
Bat uses syntect for syntax highlighting I believe. |
I considered it, but I refrained from doing it because I didn't want to pull in the required dependencies. I'd however accept it as a PR if it was implemented as a default-disabled, optional feature of the crate. Like @bjorn3 suggested, I think it would be best to use syntect instead of going through bat. |
indeed, i was meaning syntect in the background, not bat. |
very nice. yes, ofc, i will use syntect, only the library for syntax highlighthing. in that example i was using bat's api because i was trying to achieve the result fast to see if its working. but when im going to optimise it, i will use syntect only, which will be much much faster. |
have you thought to use
bat
to print highlighted source code ?like this
can i make a pull request with this idea ?
The text was updated successfully, but these errors were encountered: