ccampbell / rainbow

Simple syntax highlighting library written in javascript
http://rainbowco.de
Apache License 2.0
3.3k stars 465 forks source link

Modules, async/await and other modern JS #234

Open justinfagnani opened 6 years ago

justinfagnani commented 6 years ago

First, this is a great library! - it's the best organized and documented highlighter in JS I've found.

I've been in need of a pure JS modules highlighter, so I forked Rainbow and ported it to modules here: https://github.com/justinfagnani/rainbow

Along the way I did some other changes, like replacing callbacks with async/await and how the module script is created. Next up is getting the tests passing and a build setup for the worker.

Would you be interested in having these changes upstream? Most of them are breaking changes - even just getting modules wired up idiomatically means dropping the global Rainbow - so it'd have to be a 3.0.

Thanks for the great project!

abdonrd commented 6 years ago

It would be great to modernize the project! 👍

abdonrd commented 6 years ago

@ccampbell Have you abandoned the project?

Thanks in advance!