Hi,
I just had a glance at HyperEdit http://www.tumultco.com/HyperEdit/
It allows web preview of PHP pages. It would be very nice that TextMate allows it too. Is this on the todo list? Or did I miss a step?
Anyway, I still be faithful to TextMate ;-)
Bonne soirée,
On Sep 19, 2006, at 11:08 AM, José Campos wrote:
I just had a glance at HyperEdit <http://www.tumultco.com/ HyperEdit/> It allows web preview of PHP pages. It would be very nice that TextMate allows it too. Is this on the todo list? Or did I miss a step?
I used to use HyperEdit quit a bit. I still love it's split window live preview. It is a beautiful thing to see the code rendered as you type it and have the preview attached to the code so you can keep it all straight. I'm looking forward to this ability being in TextMate. The snippets and other features of TextMate make it easily a better product. However, I do still miss that split window live preview.
If I remember right TextMate's preview doesn't do Javascript either...
Jamie
_______________________________________________________________________ Email: jamie@methnen.com Homepage: http://www.methnen.com
"And I always go to pieces. And I have it in my mind, that the sky is tall and heavy, when I could be brave." -Karen Peris (Brave)
"I want to find where the maid in the street is pouring her wine, I heard she takes you in and gives you the words you need said. If you'll be her brother, she'll kiss you like a sister. She'll even be your mother, for now." -Matt Slocum (Sister, Mother)
"And we are drowned." -Annie Dillard (Tickets For a Prayer Wheel) _______________________________________________________________________
On 19/9/2006, at 20:08, José Campos wrote:
It allows web preview of PHP pages. It would be very nice that TextMate allows it too. Is this on the todo list? Or did I miss a step?
Well, TextMate is a generic text editor, so things like “live PHP preview” seems far too task-specific for the feature set I would like it to have.
How does this preview work? does it run its own web server? rely on the installed apache? If it is something like the latter, a command could probably be created for TM.
On 20. sep. 2006, at 00.07, Allan Odgaard wrote:
On 19/9/2006, at 20:08, José Campos wrote:
It allows web preview of PHP pages. It would be very nice that TextMate allows it too. Is this on the todo list? Or did I miss a step?
Well, TextMate is a generic text editor, so things like “live PHP preview” seems far too task-specific for the feature set I would like it to have.
How does this preview work? does it run its own web server? rely on the installed apache? If it is something like the latter, a command could probably be created for TM.
BBEdit also has this feature. It uses, as Allan suggests, the installed apache to parse php.
--erik
On 20 sep 2006, at 12.09, Erik Wessel-Berg wrote:
On 20. sep. 2006, at 00.07, Allan Odgaard wrote:
On 19/9/2006, at 20:08, José Campos wrote:
It allows web preview of PHP pages. It would be very nice that TextMate allows it too. Is this on the todo list? Or did I miss a step?
Well, TextMate is a generic text editor, so things like “live PHP preview” seems far too task-specific for the feature set I would like it to have.
How does this preview work? does it run its own web server? rely on the installed apache? If it is something like the latter, a command could probably be created for TM.
BBEdit also has this feature. It uses, as Allan suggests, the installed apache to parse php.
Huh? I am I the only one that has figured this out? Simply open the Web Preview in TextMate and click on the Show Options checkbox (btw, using a *checkbox* for this feature isn't really the recommended way). Then, in the drawer that opens, enable Pipe text through and make sure the text field below reads /usr/bin/perl. Enable the refresh with some reasonable time like 0.5 seconds and off you go.
Ok, you won't get all the bells and whistles like request parameters but it's good enough to preview php-generated markup.
I also guess that it's rather easy to write a small proxy script that would run the text through the build in apache by saving it to a temp file and calling apache and piping the result back into the preview window. Or simply do the same thing but use the file the current front window is pointing at (although I can think of technical problems with that approach).
Andreas
Andreas Pardeike andreas@pardeike.net wrote:
Huh? I am I the only one that has figured this out? Simply open the Web Preview in TextMate and click on the Show Options checkbox (btw, using a *checkbox* for this feature isn't really the recommended way). Then, in the drawer that opens, enable Pipe text through and make sure the text field below reads /usr/bin/perl.
/usr/bin/php rather? Anyway, your trick works fine for PHP code embeded in (X)HTML files, that's a good starting-point. And working with two displays is even better than a split screen :)
Thanks,