@pygy @cheeaun Perfectly possible.
Here's a demo that does on-the-fly highlighting: https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting/#highlighting-contenteditable
Top-level
@pygy @cheeaun Perfectly possible. Here's a demo that does on-the-fly highlighting: https://www.bram.us/2024/02/18/custom-highlight-api-for-syntax-highlighting/#highlighting-contenteditable 2 comments
|
@bramus @cheeaun
That makes LDT redundant...
Prism is ~10Kb larger, but its parsing abilities is heaps and bounds better than what LDT offers with just regexps.
Prism also supports styling the content of script and style tags in HTML, out of the box...