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
{{ message }}
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
This seems like a useful feature - but we'll have to rework a lot of the internals and the CSS styling. Currently we just wrap each line with a <span>, and do minimal work on the HTML to avoid messing up highlight.js's own <span> tags. To enable selective highlighting of specific ranges, we'll have to figure out a clean and minimal method of detecting tags and opening them where necessary to avoid overlapping.
Could we add support for partial line highlighting?
Suppose I had the following code block...
I'd like to be able to highlight just the initializer (
var i = 0;
) using something like this:The text was updated successfully, but these errors were encountered: