[TxMt] Validate HTML while using php includes
newsgr at tobiasjung.net
Wed Apr 9 17:58:23 UTC 2008
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...
More information about the textmate