NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Twig php template support?


Joined: 07 Jan 2012
Posts: 3
Reply with quote
You currently have support for Smarty. Is there any chance of having support added for "Twig"? It seems to be the upcoming PHP Template engine.
View user's profileFind all posts by david4514Send private message


Joined: 26 Sep 2007
Posts: 25
Reply with quote
I would LOVE to see support for twig!
View user's profileFind all posts by PureFormSend private message


Joined: 26 Sep 2007
Posts: 25
Reply with quote
I'm reviving this one...

twig.sensiolabs.org/doc/templates.html#ides-integration

I'm not sure if the licenses for the extensions for these editors / ides, which support Twig, would allow use in commercial software like PhpED, but at least it would give you a good idea on how to add the feature.

This is particular appears to be GPL: github.com/gabrielcorpse/gedit-twig-template-language/blob/master/twig.lang
View user's profileFind all posts by PureFormSend private message


Joined: 08 May 2012
Posts: 5
Location: England
Reply with quote
Having just moved to SF2 I've begun to use Twig templates and not having support for them is quite frustrating (and surprising given the integrated support for Symfony 2).

+1 for Twig support in PhpED! (Even if it's just syntax highlighting...)
View user's profileFind all posts by robadobSend private message


Joined: 21 Nov 2009
Posts: 37
Reply with quote
Bump...
+1 for Twig support in PhpED!
View user's profileFind all posts by waynesSend private message
+1


Joined: 17 Oct 2014
Posts: 3
Reply with quote
Twig support in PhpED!
View user's profileFind all posts by NVladSend private message


Joined: 21 Nov 2009
Posts: 37
Reply with quote
+1 please, please, pretty please can we have twig support....
View user's profileFind all posts by waynesSend private message


Joined: 23 Aug 2013
Posts: 6
Reply with quote
+1
View user's profileFind all posts by solidlayerSend private message


Joined: 03 Oct 2018
Posts: 2
Location: Moscow
Reply with quote
+1000 Please!
View user's profileFind all posts by paradoxstSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
@paradoxst: I'm using twig template support in PhpED already. I guess the support might not be complete and due to how twig works I can imagine full support would be very difficult if not impossible, but it does at least highlight twig code and make it easier to see HTML and coding issues.

The syntax highlighting could be significantly improved and that would for sure be a feature request.
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Tools->Settings->Editor Theme, then select TWIG in the Language dropdown.
I know, it's not a sophisticated TWIG highlighter, but still there is some level of flexibility there.

PS
I didn't mean there won't be any further improvements in this regard. Quite the opposite -- we have plans to implement a better twig highlighter.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 03 Oct 2018
Posts: 2
Location: Moscow
Reply with quote
Dmitri, thanks for the reply.
I am very pleased that you have plans for the development of Twig in PhpEd.
Now there are very few features.
1) "Reformat code"
2) auto substitution.
3) folding blocks
View user's profileFind all posts by paradoxstSend private message
Twig php template support?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic