I've found this gem called syntax which is pretty cool, but it doesn't seem to generate syntax for javascript and json...
Is there a good way to highlight the syntax for these formats directly from ruby?
Thanks
I've found this gem called syntax which is pretty cool, but it doesn't seem to generate syntax for javascript and json...
Is there a good way to highlight the syntax for these formats directly from ruby?
Thanks
I ended up here after some Google searching. The one library I've come up with at this point is Rouge: https://github.com/jneen/rouge