I'm searching for a way to run a validate Web pages created in TextMate.
The site has headers and footers via php includes for each page.
If this possible?
Thank you very much, Bob DeLaurentis
Hi,
Bob wrote:
I'm searching for a way to run a validate Web pages created in TextMate.
The site has headers and footers via php includes for each page.
I'm in the same situation, and my low-tech solution (perhaps there are more elegant ones) is to run the page in a browser, hit 'show source' for the browser, copy the code, paste into a new untitled document in TextMate, and then use the TM bundled validation. It's a few steps but they're quick with key commands.
steven rowat
At 10:32 Uhr -0700 09.04.2008, Steven Rowat wrote:
Bob wrote:
I'm searching for a way to run a validate Web pages created in TextMate.
The site has headers and footers via php includes for each page.
I'm in the same situation, and my low-tech solution (perhaps there are more elegant ones) is to run the page in a browser, hit 'show source' for the browser, copy the code, paste into a new untitled document in TextMate, and then use the TM bundled validation. It's a few steps but they're quick with key commands.
Well, if you're using the browser anyway, you could use Firefox plus the WebDeveloper Toolbar (which can send the current doc to the W3C validator even if it's loaded from your local hard disk) or iCab which has a built-in validator (though it's not always as accurate as the one from the W3C).
Of course, a solution which can be directly called from TextMate would be nice, but I don't know any...
Kind regards, Tobias Jung
On Apr 9, 2008, at 1:58 PM, Tobias Jung wrote:
Of course, a solution which can be directly called from TextMate would be nice, but I don't know any...
Perhaps you could write a command that uses wget or curl to get the resulting HTML from the server, then validate it. (I prefer wget, but curl is probably a better choice since it's installed on all Macs.)
The TM_PROJECT_SITEURL variable will probably come in handy for this command as well.
--- Rob McBroom http://www.skurfer.com/