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
The problem - if you are trying to help someone it can be helpful to link someone to a specific line of code in a web page. The browser based highlight feature is useful but not perfect for this use case.
Instead we may be able to leverage Prism's functionality. There may be some challenges though as the ids may not be unique for the code blocks given they live in the shadow DOM. There's also the problem that the page loads with the hash before prism has run. So it may take a moment to kick in. https://prismjs.com/plugins/line-highlight/
The text was updated successfully, but these errors were encountered:
The problem - if you are trying to help someone it can be helpful to link someone to a specific line of code in a web page. The browser based highlight feature is useful but not perfect for this use case.
Instead we may be able to leverage Prism's functionality. There may be some challenges though as the ids may not be unique for the code blocks given they live in the shadow DOM. There's also the problem that the page loads with the hash before prism has run. So it may take a moment to kick in.
https://prismjs.com/plugins/line-highlight/
The text was updated successfully, but these errors were encountered: