[TextMate][command] W3C validator
José Campos
jose.campos+tm at galacsys.com
Tue Oct 19 05:10:51 UTC 2004
Chris Brierley <thebrier at gmail.com> wrote:
> As Justin said, you need to be able to upload the local file via an
> HTTP POST. You can use 'curl' to do this. The following seems to
> work. It calls curl, collects the results in a temporary file, and
> then opens that file.
>
> curl -o /tmp/`id -u`/results.html -F
> uploaded_file=@$TM_FILEPATH\;type=text/html
> http://validator.w3.org/check && open /tmp/`id -u`/results.html
OK, not really understanding what all this mean, but I've just
copy-pasted it and it *works fine*. Perhaps this could be added in the
standard Commands, alongside with CSS validator and so on?
(Trying to modify the command for CSS validator does not seem to work :
curl -o /tmp/`id -u`/results.html -F
uploaded_file=@$TM_FILEPATH\;type=text/css
http://jigsaw.w3.org/css-validator/check && open /tmp/`id
-u`/results.html )
Thanks a lot to both and have a nice day|night,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
More information about the textmate
mailing list