PHP Preview as HTML

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!
Post Reply
Papid PHP Login
Posts: 2
Joined: Fri Dec 02, 2016 10:42 am

PHP Preview as HTML

Post by Papid PHP Login »

Hello,
I will preview my phpfiles only as HTML, like Dreamweaver do. I will not install an php interpreter an my PC.
When I rename the file as .html it works fine.

Greetings, Rene
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: PHP Preview as HTML

Post by Aivars »

Try going to menu Tools -> Options -> Document types and remove php extension from PHP and add it to HTML. But why would you even need this boggles my mind :)
Blumentals Software Programmer
Papid PHP Login
Posts: 2
Joined: Fri Dec 02, 2016 10:42 am

Re: PHP Preview as HTML

Post by Papid PHP Login »

Many thanks, but it don´t work. Now he show me the code also in the preview.

The most part on my sides are HTML. I think its normal when I will check this.
Or it is only because I´m not a professional. :-)
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: PHP Preview as HTML

Post by Aivars »

Of course it shows the PHP code, you are previewing it as HTML after all...
I think you should try doing it the right way and install the php interpreter as intended.
Blumentals Software Programmer
User avatar
pmk65
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: PHP Preview as HTML

Post by pmk65 »

An possible solution would be to write a small plugin that upon opening a .php file, replaces/wraps the PHP start/ending tags with HTML comments. And then do the reverse upon saving.
There are 10 types of people in the world: Those who understand binary and those who don't.
Post Reply