WYSIWYG for .php files

650 views
Skip to first unread message

Terry Liittschwager

unread,
Jul 18, 2013, 12:20:56 PM7/18/13
to blueg...@googlegroups.com
I just installed BlueGriffon to give it a try.

Almost all of my html files have a file extention of .php because there is a:

<?php include 'menu.html'; ?>

to bring in a common navigation menu.

I don't care about looking at the menu as WYSIWYG, but the .php file extension appears to be preventing BlueGriffon from showing the rest of my html as WYSIWYG.

Any thoughts on a convenient work around?

Terry

Joeg

unread,
Jul 18, 2013, 3:07:38 PM7/18/13
to blueg...@googlegroups.com
Can't you just rename the files as .html temporarily?

Terry Liittschwager

unread,
Jul 18, 2013, 11:29:59 PM7/18/13
to blueg...@googlegroups.com
Yes, but from my standpoint if I have to go to the trouble of rename, edit WYSIWYG, rename, I may just as well edit the raw html. Thank you for the thought, though.

Dominik Lenné

unread,
Jul 25, 2013, 6:44:17 AM7/25/13
to blueg...@googlegroups.com
You may put a feature request on bugzilla.bluegriffon.org?

Dominik Lenné

unread,
Jul 26, 2013, 7:40:49 AM7/26/13
to blueg...@googlegroups.com
Another simple possibility is to make apache parse .html files as php by adding the following line to the root .htaccess - file of your website:

AddType application/x-httpd-php .html

This worked on my local XAMPP installation . According to 


depending on your configuration, other lines of code have to be used.
I don't know, wether one has to modify also every .htaccess of subdirectories.




Terry Liittschwager

unread,
Jul 28, 2013, 1:31:24 PM7/28/13
to blueg...@googlegroups.com
This worked great, and my problem is solved. I did, however, put in a new feature request.
Reply all
Reply to author
Forward
0 new messages