[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Why inline php short tag in htpl is bad syntax?

Peter,

The problem is that you're using the HTML editor instead of the PHP editor. Go to Window->Preferences. Then go to General->Content Types. Open up "Text" and go to "PHP Content Type". Add .htpl, and you should be set.

Cheers,
David

Peter Arato wrote:

Hi!

I'm using Eclipse PDT. I use *.htpl files for teplates in a php project, and it's annoying, that eclipse finds bad systax where i use php short tags in html, e.g.:
<a href="<?= $link ?>">Link</a>

Error message: [Invalid characer used in text string (<?=...]

Where can I tell eclipse, that it's not a bad syntax?

Thanks a lot, Peter.