Skip to content

Syntax highlighting is inconsistent foreditable code blocks #1796

Open
@mgeisler

Description

@mgeisler

Hi there,

I noticed that the syntax highlighting changes for a Rust code block when it is made editable. The first code block is editable, the second is not:

I guess part of this is because the Ace editor uses a different theme and/or a different syntax highlighting engine.

Would there be interest in changing the default theme for one or the other kind of code block so that the colors match between them?

From a quick skim of the generated HTML, it seems that the syntax highlighting is simpler in the Ace editor compared to the highlighting in non-editable blocks: print! is marked up as a builtin in the non-editable block, but it has no special class in the Ace editor highlighting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions