ccampbell / rainbow

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

Make the system less bloated and more open #263

Open SAKryukov opened 3 weeks ago

SAKryukov commented 3 weeks ago

The major problem is the lack of a distinct core. The system is majorly closed and unsuitable for integrating the user's products. First of all, there is no clear way to obtain a generated HTML code with classes and have it as a final result. Instead, the result is immediately rendered on an HTML page. More exactly, there is a separate Prism, but this unit is only for js.net, and it is buried deep in Rainbow for browsers. When I say bloated, I mean mostly the Web Workers part. It looks totally redundant to me, as rendering can be achieved much simpler and in a more modular manner.

I would invite you to look at my repository Code publishing. It is originally based on the study of Rainbow and borrowing some of its code but was not forked because it is radically different even in terms of the concept. Also, I've fixed a good number of issues and continue doing that. By the way, will you please look through the Credits section and let me know if I credited your work incorrectly?

You can reach me on my repository discussion board. Please, if you reply to this message, write a notification on that discussion board for me.

Thank you. —SA