still need smarty syntax highlighting in Eclipse P

2019-02-15 12:01发布

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.

5条回答
走好不送
2楼-- · 2019-02-15 12:06

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

查看更多
来,给爷笑一个
3楼-- · 2019-02-15 12:08

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)

查看更多
Ridiculous、
4楼-- · 2019-02-15 12:20

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.

查看更多
Juvenile、少年°
5楼-- · 2019-02-15 12:25

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.

查看更多
Ridiculous、
6楼-- · 2019-02-15 12:29

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 :).

查看更多
登录 后发表回答