免费或廉价的IDE,支持Smarty或类似模板系统的语法[关闭]
I'm starting to build a website where I want to use Smarty or a similar templating system to separate PHP logic and HTML structure. Smarty's caching support doesn't hurt either.
(Don't tell me that PHP is a templating language already -- I know it can easily be used like that, but I like the conceptual separation).
At the same time I want to move up from Dreamweaver as an IDE. I was happy when I saw that NetBeans has a Smarty plugin, but now that I've tried using it for a while, the support seems to be nothing more than keyword highlighting -- it doesn't match {if}
with {/if}
or check Smarty syntax, and on the other hand it seems to turn of some of the HTML autocompletions.
Is there anything out there with more complete coverage?
我开始构建一个网站,我想使用Smarty或类似的模板系统来分离PHP逻辑和 HTML结构。 Smarty的缓存支持也没有受到伤害。 p>
(不要告诉我PHP已经是一种模板语言 - 我知道它可以像这样轻松使用,但我喜欢概念 分离)。 p>
同时我想从Dreamweaver升级为IDE。 当我看到NetBeans有一个Smarty插件时,我很高兴,但现在我已经尝试使用它一段时间,支持似乎只是关键字突出显示 - 它与 有没有什么 在那里有更完整的报道? p>
div> {if} with
{/ if} code>或检查Smarty语法,另一方面它似乎转变了一些HTML自动完成。 p>
If you use Twig (which I like better than Smarty - although i still prefer self-restraint+plain php) most IDE's that support Django templating should work with it since the syntax is nearly the same.
I use smarty-mode for emacs, wich provides syntax highlighting for smarty templates.