Adam Curtis
Adam Curtis
Just wanted to add my use case for consideration since it currently doesn't seem to be supported. I have a lot of simple enums that I serialize to JSON strings....
I agree here with many of the points that @tyranron makes. The `default(...)` specifier feels odd in the case where you're only specifying a top-level attribute. I think in cases...
Perhaps in the case where all spans occur on the same line, it could instead display that line number. That seems to be what many people are expecting to happen...
@zkat I made a very rough draft attempt at writing a custom SourceCode for integrating syntect, but I've been running into issues with getting the labels to render on the...
Some more thoughts on this. My initial idea was to try this as a custom `SourceCode`, since that gives the user the ability to customize which syntax highlighting they use...
I tried several approaches to only highlight the `SpanContents` instead of the entire `SourceCode`, but couldn't get anything working under the constraints of the `SourceCode` and `SpanContents` traits as they...
Quick update on this. I have a rough draft of this working locally. Using a similar approach to what you outlined above and keeping all the mutable state in `GraphicalReportHandler`...
Draft PR at #313 It ended up being easier to create a new global for the highlighter than it was to cram it into `GraphicalReportHandler`, because doing so meant that...
Here's what `dbg!(syntect::highlighting::ThemeSet::load_defaults().themes["base16-ocean.dark"])` looks like: https://gist.github.com/kallisti-dev/d43f4feb726ee15d50f7a15e7fb8c9d4 Maybe we could apply settings from `GraphicalTheme` onto a custom syntect `Theme` so that the user can customize it. It would also make supporting...
https://gist.github.com/kallisti-dev/95ca7db90e6c635e0c3a67b858f39509 For anyone who wants to see what the default themes look like on their local setup, I've made a quick script to render a Rust hello world with all...