HTML behaviour inside echo "***"

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
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".

Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!

HTML behaviour inside echo "***"

Postby mikaudio » Thu Aug 21, 2014 12:22 pm

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>
mikaudio
 
Posts: 4
Joined: Wed Sep 12, 2012 12:47 pm

Re: HTML behaviour inside echo "***"

Postby Aivars » Thu Aug 21, 2014 4:22 pm

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: HTML behaviour inside echo "***"

Postby mikaudio » Thu Aug 21, 2014 7:20 pm

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.
Code: Select all
<?
while (something) {
echo "Html with $variables...";
}
?>

Or
Code: Select all
<? while (something) { ?>
Html with <?= $variables?>...
<? } ?>

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] <? :wink:
mikaudio
 
Posts: 4
Joined: Wed Sep 12, 2012 12:47 pm


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Feature Requests

Who is online

Users browsing this forum: No registered users and 18 guests