Skip to content

Re-integrate Emmet Auto-Rename Tag #3873

@raclim

Description

@raclim

Notes
This issue is part of the ongoing work to upgrade CodeMirror from v5 to v6 (see the parent issue for additional context). This also references the develop-codemirror-v6 branch for development, and not the main develop branch.

You can also gain a better understanding of how CodeMirror v6 works by referring to their Reference Manual.

Background and Implementation

In the current p5.js editor, when a user edits an HTML tag the opening and closing tags would be automatically updated to match. This behavior is missing in the CodeMirror v6 branch.

We probably want to update the portion around line 357 in the stateUtils.js file to implement the automatic tag renaming.

Suggestions to Start

  • Check if CodeMirror v6 or Emmet potentially provides a helper extension to handle this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area:EditorFor CodeMirror-related featuresBugError or unexpected behaviorsReady for WorkIssue is ready for development work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions