Skip to content

Syntax Highlighting for HTML block/ Code block and HTML editor #10423

Open
@youknowriad

Description

Syntax highlighting as implemented today is not great. We should aim to provide a consistent behavior across blocks while keeping the bundle size as small as possible:

  • It should be lazy-loadable
  • It should be generic enough to be used as an npm dependency
  • It should be consistent.

Also, nowadays, alternative editors like "Monaco Editor" do a better job than CodeMirror, we should try to explore it and see how it fits.

Metadata

Assignees

No one assigned

    Labels

    [Block] CodeAffects the Code Block[Block] HTMLAffects the the HTML Block[Feature] BlocksOverall functionality of blocks[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions