Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Access templates / Content Assist
Access templates / Content Assist [message #66286] Wed, 20 February 2008 19:04 Go to next message
Eclipse UserFriend
Originally posted by: mjense126.hotmail.com

Hi,

I would like to have a template called e.g. "table" which makes an
html-table, but I cannot trigger content assist from within a string.

Here is an example:

$htmloutput = 'table';

Is there a workaround for this?

Thanks in advance.

-Maxtone
Re: Access templates / Content Assist [message #66316 is a reply to message #66286] Wed, 20 February 2008 19:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mjense126.hotmail.com

Content Assist should of course be Code Assist.
Re: Access templates / Content Assist [message #66337 is a reply to message #66286] Thu, 21 February 2008 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tatsudoshi.criion.net

Not that I know of.

When in PHP perspective how should eclipse know that a string contains
html code and not just text?
If you need code assist in html, make a html file and do it there, then
copy'paste it to the php file or use the output of <<file_get_contents>>
to make the string. Of cause you can't put php code in the html file
without processing it with eval() or some other way.
Re: Access templates / Content Assist [message #66395 is a reply to message #66337] Thu, 21 February 2008 16:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mjense126.hotmail.com

The reason why i ask this question is that i am currently using Zend
Studio, and it has the functionality.
Re: Access templates / Content Assist [message #66416 is a reply to message #66395] Thu, 21 February 2008 20:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tatsudoshi.criion.net

Then you should probably ask the Zend support team, since PDT and Zend
are very different :-)
Re: Access templates / Content Assist [message #66575 is a reply to message #66416] Fri, 22 February 2008 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mjense126.hotmail.com

i'm not totally stupid... that's why I asked if it can be done in PDT in
some way. I think you have misunderstood my question.

I asked if it is possible to trigger the code assist from within a string,
thus giving me the option to use templates. Being able to do that would
get rid of the only thing keeping me form moving completely to PDT.

I hope this clearifies my question.

-Maxtone
Re: Access templates / Content Assist [message #66677 is a reply to message #66575] Sun, 24 February 2008 14:32 Go to previous message
Eclipse UserFriend
Originally posted by: tatsudoshi.criion.net

Oh my bad.. I thought you were asking a Zend specific question.

But to my knowledge code assist does not read inside strings when doing
html tags. I wish it did though.
Previous Topic:Xubuntu - PDT all-in-one installation/running question
Next Topic:Discuss next PDT 1.1 features and architecture
Goto Forum:
  


Current Time: Thu Apr 25 11:38:17 GMT 2024

Powered by FUDForum. Page generated in 0.03273 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top