-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add syntax highlighting for TOML to rustdoc #43165
Comments
I'm shared on this. I agree on the fact that's nice to have and all, but that's not really useful in itself... Let's say I'm slightly against it but not much. |
I use it in the book, so 👍 from me. |
Maybe there's an easy way to optionally include a standard syntax highlighting js library for non-rust languages? Highlighting other languages in rustdoc has been reasonably requested before: #40301 |
I would really like this too. |
@clux: you can add your own JS lib. A good example is this crate. |
YAML support might also be nice, e.g. for |
I'd definitely like supporting other languages. Rust doesn't exist in a vacuum and there are plenty of reasons to write code in other langs, such as:
|
Interestingly enough, docs.rs does support highliting toml, if you navigate to crate (and the toml is there) |
Small correction here: But this issue is talking about code blocks inside the HTML doc pages. |
Since TOML is such an essential part of the Rust ecosystem, it’s probably worth adding syntax highlighting for this file format. Here is an example of a code block that is currently ignored, syntax-highlighting-wise, when generating the documentation.
The text was updated successfully, but these errors were encountered: