On 01/09/2005, at 15.14, Douglas Livingstone wrote:
If you open the HTML preview window, you can check "Show Options" to open the side drawer, where you can check "Pipe text through" and provide "php" as the command.
Would it be possible to have it set to a fixed URL, and refresh on changes to the active file?
No, that's not possible.
The web preview has been neglected because, well, I rarely use it, and the various requests indicate that people really want a full Safari, perhaps even with some Firefox features (cookie editor, javascript error log), and having it go through apache -- and the net result would be that the only difference between this and just use cmd-R for save + reload Safari/Firefox, is, that the cmd-R would happened periodically.
So clearly the better route would be to allow a way to setup periodic events and/or allow a plugin to be notified on document changes (and factor the web preview out into a plugin, hoping others would make it into more of a browser, if that's desired).
I do however have some improvements planned, since I consider some parts of the current web preview broken, but for a full browser, I think that should be delegated to an actual browser :)