问题
How do I get smarty syntax highlighting in Eclipse PDT?
The only project I was able to find is SmartyPDT, but it's outdated and isn't working with my current Eclipse install (PDT All in one, with Eclipse 3.5).
EDIT: I recently found this post asking the same question from a long time ago. But the plugin linked in the accepted answer there is out of date now.
EDIT: removed "(no accepted answer)" from title. it was misleading.
回答1:
I've used both SmartyPDT and SSE*.
SmartyPDT is finicky and it took some time for me to get it working. Unfortunately, after an OS reinstall my custom jars don't work anymore, so I've been using SSE.
It is quite basic but better than nothing.
It is described in English at bar54.
Download it from Google's translated version.
Update:
Example of SSE http://www.freeimagehosting.net/uploads/1c07de77d7.png
*I guess this is what it's called, the page is in Japanese.
回答2:
About Using Aptana + Eclipse: They removed support for Smarty in Aptana Studio 2 because they were going to "join forces with the eclipse PDT team", but with "unknown schedule as to when or whether smarty support will come to pdt".
Anyways, they also offer to download the "old" Aptana Studio, which works for me like a charm, I wouldn't want to miss smarty support ever again:
https://aptanastudio.tenderapp.com/faqs/installing-aptana-studio/downloading-aptana-studio-151-and-aptana-php
It works in parallel with PDT2, cause for some reason the php support of Aptana is not so good in 1.5.1 - but the smarty support is cheesy :).
回答3:
what does Aptana use? I think its Smarty enabled..and it integrates with Eclipse PDT and the other choice is Zend Studio which is built on top of Eclipse PDT
回答4:
Great article about integration Eclipse Helios + PDT + Smarty http://www.ikravets.com/computers-life/programming/2010/09/27/eclipse-helios-pdt-smarty (Use translation to English on this page)
回答5:
I use SmartyPDT, as suggested in this related question.
Just follow as strictly as possible the installation procedure. Worked for me without too much hassle.
来源:https://stackoverflow.com/questions/2575142/still-need-smarty-syntax-highlighting-in-eclipse-pdt