Skip to content

Get StackOverflow to default to Rust syntax highlighting questions tagged [rust] #15109

Closed
@huonw

Description

@huonw

Currently, code in [rust] questions needs to have an explicit <!-- language: lang-rust --> comment before it in the markdown to have pretty colours (see "Syntax highlighting for code"). Other established language tags automatically imply using that highlighting, it would be nice to work out how to get SO to handle this for Rust.

Example. The old impl block is plain, the new one is coloured.

(It might just be opening a question on meta.stackoverflow.com, not sure; I don't have time to investigate now.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions