Skip to content

Bug: no syntax higlight in code blocks that are editable #1933

Closed
@AntonioCS

Description

@AntonioCS

Hey,

I've noticed that on some pages of the Rust By Example site, the syntax highlighting isn't applied to editable code blocks.

For example, on the while let page, the first code block has syntax highlighting, but the second one does not:

Screenshot

This issue also occurs on several other pages, including:

Interestingly, the corresponding Markdown source files on GitHub do show proper syntax highlighting:

It looks like this might be related to how editable code blocks are rendered on the website. Let me know if you'd like help narrowing it down further.

Tested on the latest versions of Firefox and Chrome on Windows 10 Pro.

This issue was also discussed and confirmed by others in the Rust community Slack:
https://rust-lang.slack.com/archives/C1NCDGD47/p1747814609557589

Thanks!

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