NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code Navigator on XHTML/Smarty document


Joined: 26 Sep 2008
Posts: 1
Reply with quote
(this is for PhpED 5.5.x)

If you edit Smarty template (i.e. combination of XHTML and Smarty syntax), PhpED colors the both syntaxes correctly. The problem is that tree of tags structure in the Code Navigator window doesn´t appear. It´s because *.tpl file isn´t defined as HTML type in Tools->Settings->IDE->Associations.

So you should define *.tpl as HTML type. If you do so, a tags structure in Code Navigator appears but Smarty syntax is no more colored.

Is there a way how force PhpED to color both syntaxes and also generate tags structure in Code Navigator?
View user's profileFind all posts by PokySend private message


Joined: 28 May 2006
Posts: 14
Reply with quote
Poky's request is still valid for PhpED 5.6.

How to force PhpED to display the HTML tree of smarty templates?
View user's profileFind all posts by SchnapoSend private message


Joined: 23 Sep 2009
Posts: 10
Reply with quote
I agree that this would be an excellent feature for those of us who work with smarty templates. However, I can see that it'd be quite hard to actually implement because of the fact that a smarty template need not contain valid markup. In fact there can be many conditionals / iterators and so forth in the smarty logic that emit incomplete markup sections to create an complete document.
But +1 to the request if it were possible to parse the smarty logic and create a navigation tree from it!
View user's profileFind all posts by agwdSend private message
Code Navigator on XHTML/Smarty document
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