rubychan / coderay

Fast and easy syntax highlighting for selected languages, written in Ruby.
http://coderay.rubychan.de/
Other
846 stars 115 forks source link

PHP TWIG Support #197

Open webdevilopers opened 8 years ago

webdevilopers commented 8 years ago

We are using CodeRay for Redmine. Since CodeRay already supports PHP maybe it could also support TWIG - somewhat an equivalent to HAML.

korny commented 8 years ago

Yes! If you want to try, here's a tutorial on writing scanners. You also need some test code for https://github.com/rubychan/coderay-scanner-tests.

webdevilopers commented 8 years ago

Unfort. my experience w/ Ruby and expressions aren't good enough to write the scanner myself. But I think some of my PHP TWIG friends are also experienced in Ruby. Maybe I can find somebody who is using Redmine too.