microsoft / microsoft/monaco-editor
feature-request: Support Matching Tag Editing for HTML/XML
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
When editing html/xml, it'd be great when editing the start or end of a tagged pair for it to update the other side to match like VS.
E.g. If I have this content:
<div><p>Content</p></div>
And then I start modifying the div or /div to now be a span, I'd want to see this:
<span><p>Content</p></span>
Monaco would automatically update the other side of it (that it already knows about from highlighting support).
Currently, I get this:
<div><p>Content</p></span>
OR
<span><p>Content</p></div>
This is kind of related to #221.
monaco-editor version: 0.9
Browser: Edge
OS: 15063
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Monaco's existing HTML/XML highlighting support and the related issue #221. Reproduce the tag-editing examples from the issue, then determine how matching-tag edits should be represented and tested; done means changing either tag updates its pair without disturbing nested content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100