Skip to content

Re-integrate Emmet Auto-Rename Tag #3873

Open

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.

Activity

  1. added
    BugError or unexpected behaviors
    on Feb 13, 2026
  2. added
    Area:EditorFor CodeMirror-related features
    Ready for WorkIssue is ready for development work
    and removed on Feb 13, 2026
  3. Nixxx19 commented on Feb 14, 2026

    @Nixxx19
    Member

    Hi @raclim!

    I'd love to work on this issue and submit the fix for it.

  4. Nishthajain7 commented on Feb 22, 2026

    @Nishthajain7
    Contributor

    I've made a PR that fixes this issue.

  5. ksen0 commented on Mar 9, 2026

    @ksen0
    Member

    Hi @Nishthajain7 ! Although the PR looks solid, I've noticed you jumped the queue on this and filed a PR without assignment, and despite another contributor volunteering first. Please don't do this in the future, that would be really appreciated! Thanks so much for your work and patience

  6. Nishthajain7 commented on Apr 10, 2026

    @Nishthajain7
    Contributor

    @ksen0 I’ll follow the process going forward and make sure I’m assigned to the issue before submitting a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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