✨ Highlight Matching Tags
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
Línea de trabajo
El issue no menciona archivos, pruebas ni puntos de entrada. Primero localiza los componentes del editor encargados del análisis sintáctico de tags, la coincidencia del cursor, el resaltado y la sincronización de ediciones; se considera terminado cuando los tags de apertura y cierre correspondientes aparecen resaltados para las posiciones del cursor descritas y permanecen sincronizados mientras se editan los nombres.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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>
- Lenguaje dominante
- Swift
- Estrellas
- 720
- Forks
- 162
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeEditApp/CodeEditSourceEditor
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 comentario ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
Todos los issues de CodeEditApp/CodeEditSourceEditor
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
maxgoedjen/secretive#840 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
manaflow-ai/cmux#13763 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
openwallet-foundation/multipaz#2028 ·