✨ Highlight Matching Tags
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 28/100
Piste de recherche
L’issue ne nomme aucun fichier, test ou point d’entrée. Commencez par localiser les composants de l’éditeur responsables de l’analyse des tags, de la mise en correspondance du curseur, de la surbrillance et de la synchronisation des modifications ; c’est terminé lorsque les tags ouvrants et fermants correspondants sont mis en surbrillance pour les positions du curseur décrites et restent synchronisés pendant la modification des noms.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
We want to enhance tag-matching behavior in markup languages such as HTML, XML, and JSX by highlighting matching tags based on cursor position. This feature is inspired by bracket matching in Xcode, where matching brackets are highlighted based on cursor placement.
When the cursor is placed within a tag, the corresponding opening or closing tag should be highlighted. Additionally, if any tag name is modified in either the beginning or end tag, the matching tag should update to reflect the change.
Behavior Examples
In the following examples, | represents the cursor position, and underlined text represents the highlighted matching tags:
- <|div class="wrapper">Hello world!</div>
- <div| class="wrapper">Hello world!</div>
- <div class="wrapper">|Hello world!</div>
- <div class="wrapper">Hello world!<|/div>
- <div class="wrapper">Hello world!</div|>
- <div class="wrapper">Hello world!</div>|
Requirements
-
Cursor-Based Tag Matching:
- When the cursor is within a tag name, either at the opening or closing tag, the corresponding tag should be highlighted.
-
Tag Synchronization:
- When a tag name is edited, the matching tag should update to reflect the change in real-time, ensuring that both tags are always in sync.
-
Highlight Behavior:
- Highlighting should clearly indicate the matching tag, using a distinct visual style (e.g., underline or color change) for both the opening and closing tags to enhance visibility.
This feature will improve the editing experience by making it easier to identify matching tags, reducing errors in nested or complex structures.
Original Issue Description
Is it possible to highlight the opening and closing tags? Example: <div> </div>
- Langage dominant
- Swift
- Étoiles
- 720
- Forks
- 162
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CodeEditApp/CodeEditSourceEditor
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 commentaire ·
-
Difficulté 1/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
Toutes les issues de CodeEditApp/CodeEditSourceEditor
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
area:general bug P1 security
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
uttrflow/uttrflow-swift#1333 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
maxgoedjen/secretive#840 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
manaflow-ai/cmux#13763 ·