You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to add a transformer notation within an HTML snippet, it is currently impossible to highlight specific lines, such as lines 2–3, in cases like this:
<divclass="test"
style="color: white"
>
test case
</div>
Suggested solution
Introduce a matchAlgorithm that supports matching lines with both a start and end index. Currently, the match must begin from the line containing the comment. For example, // [!code highlight:5] on line 3 results in a match of lines 3–7. Instead, we could allow specifying a range, such as // [!code highlight:2-5], which would match lines 4–7.
If the start index is not explicitly provided, the default value remains 1, ensuring no breaking changes.
Clear and concise description of the problem
When attempting to add a transformer notation within an HTML snippet, it is currently impossible to highlight specific lines, such as lines 2–3, in cases like this:
Suggested solution
Introduce a matchAlgorithm that supports matching lines with both a start and end index. Currently, the match must begin from the line containing the comment. For example, // [!code highlight:5] on line 3 results in a match of lines 3–7. Instead, we could allow specifying a range, such as // [!code highlight:2-5], which would match lines 4–7.
If the start index is not explicitly provided, the default value remains 1, ensuring no breaking changes.
Alternative
No response
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: