Hi folks,
my FR:
Switch to HTML highlighting and autocomplete inside the double quotes of an echo statement.
Maybe with a different background color to avoid confusion.
Thanks
</Mike>
HTML behaviour inside echo "***"
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Re: HTML behaviour inside echo "***"
Hmm, is writing echo "html here" a good way to go about templating? Aren't you supposed to close PHP tag and put the HTML content there? e.g.
Code: Select all
...php code
?>
<html><goes><here></here></goes></html>
<?php
...more php code
Blumentals Software Programmer
Re: HTML behaviour inside echo "***"
Yes, but sometimes it's like too much "switching" php off and on. E.g. at the end of a loop just for a closing bracket.
Or
What is better for the parser anyway? What ist good programming style? Sure my approach to writing code is not very professional.
And yes, I've already made myself a shortcut "Get out of php": ?> [selection] <?
Code: Select all
<?
while (something) {
echo "Html with $variables...";
}
?>
Code: Select all
<? while (something) { ?>
Html with <?= $variables?>...
<? } ?>
And yes, I've already made myself a shortcut "Get out of php": ?> [selection] <?
