Replies: 1 comment
-
@jimthedev thanks again for sharing your idea! It's definitely something I'm open to in general. It might come in quite handy. However, there might be certain limitations when using the CSS Highlight API to highlight lines. Ideally, highlighting lines would not require markup changes. The CSS Highlight API uses Range objects therefore highlighting the full line is unfortunately not possible. As far as I know only actual text including whitespace can be highlighted. A quick, basic POC implementation looks something like this e.g. ![]() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Another idea that I'd love to see is the ability to highlight several lines. I realize this would be at odds with it being editable since you'd probably want to attach the highlight to a specific content that just happens to live on a certain line. In the case of non editable though I'd love to see the ability to highlight various line ranges.
Is this something you think might be possible and/or would be open to?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions