pulse00 / Symfony-2-Eclipse-Plugin

Symfony eclipse plugin.
symfony.dubture.com
MIT License
215 stars 48 forks source link

Support of Twig Template Engine #15

Closed raziel057 closed 13 years ago

raziel057 commented 13 years ago

I think it could be very interesting to have colorize and completion features to ease the use of Twig Template Engine.

pulse00 commented 13 years ago

i completely agree, but unfortunately this is a lot of work, because the existing HTML Editor tools like WTP are not designed to be extended which means a twig-editor would need to implement HTML/JS/CSS features from scratch.

I'll focus on the plain PHP side in the first release, to provide useful autocompletion features.

pulse00 commented 13 years ago

i've good news. based on the smarty eclipse plugin and the help from the PDT developers i managed to add twig support on top of the default php editor. This way all the features for other contexts like html/css/js are still available, with additional features for twig. here's a screenshot:

http://imageshack.us/photo/my-images/823/tweclipse.png/

I'll design the plugin without the dependency to symfony and provide extension points for codeassist so other plugins like the symfony plugin can hook into the twig codeassistance process.

Here's the github repo:

https://github.com/pulse00/Twig-Eclipse-Plugin

I'll let you know when there's an update site available, would be nice if you could test a bit ;)

Features so far:

schmittjoh commented 13 years ago

What do I need to do to set the plugin up? Just copy the files into my eclipse folder?

pulse00 commented 13 years ago

nope, i'll provide an archived update site. but please note that this is still alpha and is compiled against eclipse 3.7:

http://www.eclipse.org/downloads/index-developer.php

Not tested if it will work on a 3.6 eclipse installation.

pulse00 commented 13 years ago

I added the zip archive to the twig repository and updated the readme with instructions. It should work with eclilpse 3.6 too, i've just tested it with a fresh install.

Amnes commented 13 years ago

Greate plugin ! THX