@mia @bramus @Meyerweb
these docs might help you understand the tokens: https://prismjs.com/docs/Prism.html#.tokenize
https://prismjs.com/docs/Token.html
and then you plug the token positions into ranges (and the token types and ranges into highlights): https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API#create_ranges
@hi_mayank @mia @bramus @Meyerweb is Prism essential in producing these tokens or can other JS highlighters (highlight.js etc.) produce these too?