Skip to content

P0-17: Add HTML tag folding support #97

@hybridmachine

Description

@hybridmachine

Summary

Code folding does not currently recognize HTML tags. Users cannot fold/collapse HTML elements like <div>...</div>, <section>...</section>, etc. The editor should support folding at HTML tag boundaries, consistent with how Notepad++ handles HTML folding.

Expected Behavior

  • HTML tag pairs (e.g., <div>...</div>) should be foldable
  • Nested tags should create nested fold regions
  • Self-closing tags (e.g., <br/>, <img/>) should not create fold points

Current Behavior

Folding in HTML files does not recognize tag structure. Fold markers are missing or incorrect for HTML content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions