mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
130 stars 4 forks source link

Syntax highlighting #29

Closed aalin closed 1 year ago

aalin commented 1 year ago

In the haml-branch, there is some syntax highlighting in a test. It's useful for debugging, would be great for colorizing code in error messages sometime in the future when it's time to improve error handling...

For the documentation on the website, it would be super-useful to be able to render code with syntax highlighting.

https://github.com/rouge-ruby/rouge seems pretty good, just need to figure out a way to convert everything into descriptors. Probably not too difficult

aalin commented 1 year ago

This is done