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
Is there a reason that the div used for line-highlights does not auto-size to the same as the code block?
I added this in (minified version), to let it do that: h.style.width=e.firstChild.offsetWidth+60+'px',
Otherwise, on long lines, you can scroll and then highlight stops at the width of the pre tag. You can see this behavior on the examples on PrismJS.com
The text was updated successfully, but these errors were encountered:
If is this you are refering to, then I got the same issue.
This was the result after I linked with #id-div.2-5
Also, I'm not sure if this helps, but I am using the code highlighter inside a second level tabbed page on bootstrap, which is not loaded at page loading. Basically I load the code highlighter after a ajax request.
Is there a reason that the div used for line-highlights does not auto-size to the same as the code block?
I added this in (minified version), to let it do that: h.style.width=e.firstChild.offsetWidth+60+'px',
Otherwise, on long lines, you can scroll and then highlight stops at the width of the pre tag. You can see this behavior on the examples on PrismJS.com
The text was updated successfully, but these errors were encountered: