-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Display code snippets with syntax highlighting #4
Comments
Yes, syntax highlighting would be nice - provided whatever provides it isn't too heavy-weight. So something just based on tokens, not full rust-analyzer :) I'm assuming you mean the code snippets BTW - Cackle doesn't display any code diffs currently. It does display diffs of cackle.toml when previewing an automatic edit of the configuration file. |
Thinking about syntax highlighting some more, I'm unsure that a syntax-highlighting library would provide much beyond what a lexer already provides. Cackle already depends on |
I just added some basic syntax colouring. I didn't put too much thought into the colours, so if you have opinions on the colours, feel free to tweak and send a PR. |
Would be nice to show the code diffs in the "Usage details" window with colored syntax highlighting to more easily be able to read it, esp. as one may be scanning through quite a lot of diffs when triaging with this tool. Though not a high priority as would just be a "nice to have".
Believe seen some Rust syntax highlighting crate that may be easy to integrate
The text was updated successfully, but these errors were encountered: