Access templates / Content Assist [message #66286] |
Wed, 20 February 2008 19:04 |
Eclipse User |
|
|
|
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 #66337 is a reply to message #66286] |
Thu, 21 February 2008 10:20 |
Eclipse User |
|
|
|
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 #66575 is a reply to message #66416] |
Fri, 22 February 2008 14:49 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02387 seconds