rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.34k stars 738 forks source link

jade highlighting #273

Open mynimi opened 9 years ago

mynimi commented 9 years ago

Hi I'm using rouge with jekyll and have been very happy with it thus far, now I wanted to try and highlight some jade which is not part of the supported languages, as fas as I have seen?

Do you think there is another option to have some color (language, that has a similar syntax?) that I could use instead?

jneen commented 9 years ago

Hi @mynimi, thanks for reaching out! Unfortunatly Jade isn't supported right now. If you want to try your hand at writing a lexer I'd love to merge it though.

mynimi commented 9 years ago

Oh God, me trying to write a lexer... I'm still really bad at anything ruby related, so I don't think I'd be of a lot of help. But thanks for the quick answer. I will try if I can make it look good with one of the languages that are in there and hope that maybe someone more talented than I might find some time to write something for jade.

aaroneg commented 9 years ago

If you do decide to try your hand at it and it's one of the Regex based lexers you start with, I had a lot of luck with http://www.regexr.com/ when writing and testing the regexes for the powershell lexer.

marlonbernardes commented 9 years ago

@mynimi Just adding my 2 cents: slim syntax (http://slim-lang.com/) is pretty similar to jade, and rouge supports slim!

mynimi commented 9 years ago

@marlonbernardes Thanks! :smiley: :+1:

yukulele commented 5 years ago

duplicate: https://github.com/jneen/rouge/issues/953

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. If you would like this issue to remain open, please reply and let us know if the issue is still reproducible.