Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Twig/Django templates #448

Closed
xaav opened this issue Oct 5, 2011 · 4 comments
Closed

Support for Twig/Django templates #448

xaav opened this issue Oct 5, 2011 · 4 comments

Comments

@xaav
Copy link

xaav commented Oct 5, 2011

@Gissues:{"order":44.72049689441019,"status":"backlog"}

@heygrady
Copy link

heygrady commented Jan 4, 2013

There's already a textmate bundle: https://github.com/Anomareh/PHP-Twig.tmbundle

It's possible to convert textmate bundles: http://ace.ajax.org/#nav=higlighter (look for "Using the TMLanguage Tool")

I have not done this yet but it should get you 80% of the way. It would be awesome if Ace added it but Twig is likely too obscure for them to offer oficial support.

@lukeholder
Copy link

+1 would love to see ace support twig templates!!

@heygrady
Copy link

This pull request by @nightwing includes an HTML Twig mode. Apparently he converted a large handful of modes all at once. You could merge this pull request into your own branch or you could wait them to merge it here.

#1355

Also, I created one for my own purposes but you have to build Ace yourself to use it. It's been working well enough for me but it's probably not perfect.

https://github.com/heygrady/ace-mode-twig

@nightwing
Copy link
Member

@heygrady i tried to convert Anomareh/PHP-Twig.tmbundle but it required too many manual tweaks, so i had to remove it ab1ed57.
Maybe you could make a pr from your ace-mode-twig?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants