-
Notifications
You must be signed in to change notification settings - Fork 13k
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 to rust-lang.org's code snippet #1518
Comments
If somebody wants me to rewrite the CodeMirror snim I'm using in the tutorial as a general command-line utility (depending on |
Can we just do the syntax highlighting dynamically on the page to avoid the need to preprocess it? |
We could, but I think that kind of 'pushing work and complexity of to X clients because 1 server was too lazy to do it' is extremely bad style. |
This is done. I ended up just inserting the proper CodeMirror style spans manually into the code example and adding a slimmed-down version of CodeMirror's css file. So it doesn't require any complex machinery on either server or client, but the code example won't be very easy to edit (not that it should be changing often anyway). |
Thanks, @bstrie. |
…shearth Extend `explicit_iter_loop` and `explicit_into_iter_loop` fixes rust-lang#1518 Some included cleanups * Split `for_loop` test into different files for each lint (partially). * Move handling of some `into_iter` cases from `explicit_into_iter`. --- changelog: Enhancement: [`explicit_iter_loop`]: Now also handles types that implement `IntoIterator`. [rust-lang#10416](rust-lang/rust-clippy#10416) changelog: Sugg: [`explicit_into_iter_loop`]: The suggestion now works on mutable references. [rust-lang#10416](rust-lang/rust-clippy#10416) <!-- changelog_checked -->
No description provided.
The text was updated successfully, but these errors were encountered: