W3C home > Mailing lists > Public > public-qa-dev@w3.org > July 2006

Re: Validator and TextMate

From: olivier Thereaux <ot@w3.org>
Date: Fri, 14 Jul 2006 15:26:46 +0900
Message-Id: <2189F0D7-D995-4E14-85C1-182857A8B6C0@w3.org>
Cc: QA Dev <public-qa-dev@w3.org>
To: Karl Dubost <karl@w3.org>


On Jul 14, 2006, at 11:11 , Karl Dubost wrote:

>
> Hi,
>
> TextMate has a feature to validate the code we are writing. It  
> sends the content of the window with this command.
>
> curl 2>/dev/null -F uploaded_file=@-\;type=text/html http:// 
> validator.w3.org/check \
> | perl -pe 's|(Line (\d+) column (\d+))|<a href="txmt://open?line= 
> $2&column=@{[$3 + 1]}">$1</a>|'\
> | perl -pe 's|</title>|$&<base href="http://validator.w3.org/"/>|'
>
> Any comments? Or suggestions?

There shouldn't be any problem with this approach, so long as text  
mate only supports utf-8 documents anyway. One cool (but bad) feature  
is how they seem to be doing screen scraping to link the line+column  
information in error messages to the location in the editor. Ideally,  
they'd use the xml output for that...

-- 
olivier
Received on Friday, 14 July 2006 06:27:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 August 2010 18:12:46 GMT