0

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

2 Answers 2

1

There is a good run down of Ruby syntax highlighters here

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.