3 ms·
I created a syntax highlighting API earlier this year with some of the same features: https://torchlight.dev https://torchlight.dev. I've got a handful of payi
by aarondf 5y ago
I created a syntax highlighting API earlier this year with some of the same features: https://torchlight.dev https://torchlight.dev.
I've got a handful of paying users and a few hundred free. I'm happy to see syntax highlighting being pushed forward!
I'll definitely be following along, it's beautiful stuff.
- danielskogly 5y agoJust a small heads-up that the first 9 code examples has double scrollbars (see "Scrollbar Blindness" [0]). It's often better with `overflow-x: auto` than `overflow-x: scroll` :) [0]: https://web.archive.org/web/20210226184710/https://svenkadak.com/blog/scrollbar-blindness https://web.archive.org/web/20210226184710/https://svenkadak...
- aarondf 5y agoAh good note. Thanks.
- ushakov 5y agolol, people paying money for this?
- isakkeyten 5y agoRight? I'm 99% sure this thing uses https://github.com/shikijs/shiki https://github.com/shikijs/shiki
- orta 5y agoI've also made a pretty complex thing with shiki (shiki-twoslash which you could say is similar to torchlight but just for TS/JS) Torchlight definitely a good chunk of work on top of shiki, and as an external API it might be much easier to work with in many non-JS ecosystems.
- aarondf 5y agoHey funny seeing you here! Twoslash is incredible, I'm jealous of some of the stuff you can pull off since you're TS/JS only. You've done an amazing job with it, I've always enjoyed looking through your docs.
- aarondf 5y agoYup! You never know unless you try.