Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-01-11 11:09:16

Prosis
New member
Registered: 2008-01-11
Posts: 1

PHP File Editing: Source = Plain Text and Design = Parsed HTML?

Hello

I have tried Xinha and I'm quite impressed!  But I would like to use Xinha to edit PHP files.  What I need it to do is to enable me to edit PHP files in plain text when I'm editing the source and when I'm editing in non HTML source mode, I would need the page to be parsed.  Is that possible?

Example, when in source mode, I write <?php echo 'Hello World'; ?> in between two divs.  When I come back to WYSIWIG mode, I would need to see the two divs and Hello World between them.

Is this possible?

Thank you!

Offline

#2 2008-01-21 13:32:43

Practicality
Xinha Community Member
Registered: 2007-02-15
Posts: 24

Re: PHP File Editing: Source = Plain Text and Design = Parsed HTML?

I suppose the short answer is theoretically, yes, but I am pretty sure Xinha does not support anything like this currently. That would be an interesting plugin: To have the editor send the document to the PHP parser before displaying. I am sure it is something one could do, but right now I am not aware of Xinha having this capability.

Offline

#3 2008-01-22 17:30:03

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: PHP File Editing: Source = Plain Text and Design = Parsed HTML?

Possibly could be done similar to the PreserveScripts plugin (currently only in nightly), involving XMLHttpRequest and eval'ing the content on the server.

Offline

Board footer

Powered by FluxBB