Closed Bug 1164503 Opened 9 years ago Closed 4 years ago

Add syntax highlighting support for Rust to MDN

Categories

(developer.mozilla.org Graveyard :: General, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sheppy, Unassigned)

Details

(Whiteboard: [specification][type:change])

What feature should be changed? Please provide the URL of the feature if possible.
==================================================================================
We need to be able to present syntax-highlighted Rust code on MDN.

What problems would this solve?
===============================
This will make articles covering Rust look better and be easier to read. It would also improve consistency with other content.

Who would use this?
===================
Anyone writing or reading Rust docs.

What would users see?
=====================
Nice syntax-highlighted Rust code.

What would users do? What would happen as a result?
===================================================
This would just add "Rust" to the syntax highlighter's language drop-down menu in the editor.

Is there anything else we should know?
======================================
FWIW, Prism supports Rust [1] so this may just be a matter of updating Prism to get the brush: rust class.

[1] http://prismjs.com/#languages-list
Severity: normal → enhancement
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/be3ca648239a586f273d5e3e9470fe90838ffd37
bug 1164503 - Upgrade Prism.js, add Rust language

https://github.com/mozilla/kuma/commit/424aa23afb26050a5e7749bdafe2d93a62a25369
Merge pull request #3572 from mozilla/upgrade-prism-1164503

bug 1164503 - Upgrade Prism.js, add Rust language
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.