PHP code within an HTML file in WeBuilder

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!

PHP code within an HTML file in WeBuilder

Postby Stumpi » Mon Dec 28, 2015 6:55 pm

Hello,

it is possible to insert PHP code within an HTML file. Here is selected HTML as syntax. You can only badly differentiate the PHP Code and HTML Code. If I now PHP code comment on, the code is not recognized as a comment.
Can we improve that, please?

Thank you, Stumpi.
Stumpi
 
Posts: 31
Joined: Mon Dec 28, 2015 3:34 pm

Re: PHP code within an HTML file in WeBuilder

Postby Aivars » Tue Dec 29, 2015 12:33 am

You can't put PHP code in HTML file. You can put HTML code in PHP file but not vice versa.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: PHP code within an HTML file in WeBuilder

Postby Stumpi » Tue Dec 29, 2015 5:17 pm

Why not? Example:

Code: Select all
<!DOCTYPE html>
<html>
<head>
  <title>Hello!</title>
</head>

<body>
<?php
echo("Hello, World!");
?>
</body>
</html>


This ist the default code when I create a new html file with WeBuilder.

Stumpi
Stumpi
 
Posts: 31
Joined: Mon Dec 28, 2015 3:34 pm

Re: PHP code within an HTML file in WeBuilder

Postby Aivars » Wed Dec 30, 2015 8:55 am

It looks like PHP file, not HTML file... What's going on, do you get this code by clicking menu File -> New -> HTML?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: PHP code within an HTML file in WeBuilder

Postby Stumpi » Wed Dec 30, 2015 10:24 am

Sorry, my mistake. That's what happens when I have highlighted

Code: Select all
<?php

?>


in any open file and then create a new HTML-File. The new file is an PHP-file, not HTML. You're right. Apologies, I have seen wrong.

Stumpi
Stumpi
 
Posts: 31
Joined: Mon Dec 28, 2015 3:34 pm


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

Who is online

Users browsing this forum: No registered users and 4 guests

cron