← Back to context

Comment by extheat

1 year ago

This is actually really cool. I can see the usages in textarea and inputs but also even in plain HTML documents for large code formatting. No need for exploding the DOM with tons of spans and other HTML tags, if you can have the hardware accelerated font rendering software take care of everything. I’d imagine that would save lots of memory and CPU.

I havent tried millions but you can use hundreds of thousands of spans witout any noticable delay. It was implemented wonderfully.

Built-in syntax highlighting fits nicely Markdown ideology. Also, it may look good at plain-text console.