HTML code completion in PHP? |
Guru master
|
I think the only place you can get HTML code completion within PHP is by using ?> to switch out of PHP context and back into HTML. This means for example that code completion is not available within strings on PHP statements because PhpED has no way of knowing if that should be an HTML string or not.
You can of course do things like this:
|
||||||||||||||||
|
|
Thank you for the explanation, plugnplay.
|
||||||||||||
|
Guru master
|
It's worth mentioning at this point that if a PHP file finishes in PHP context, whilst you can use a terminating ?> and that appears to be the correct thing to do, most framework standards say that you should not use a terminating ?>
The reason for that is so there is less chance of inadvertently outputing blank HTML at the end of the file (such as hard to spot new lines and spaces) which will cause HTML headers to be sent. So whilst my previous sample is technically correct and most code snippets do show the terminating ?> this is what you might really have in your PHP file:
|
||||||||||||||
|
HTML code completion in PHP? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by