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

Validator and TextMate

From: Karl Dubost <karl@w3.org>
Date: Fri, 14 Jul 2006 11:11:37 +0900
Message-Id: <8DB98D21-9EBC-4759-92F8-912094139B2E@w3.org>
To: QA Dev <public-qa-dev@w3.org>

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?


PS: Textmate is an editor on the macintosh.


-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***
Received on Friday, 14 July 2006 02:11:47 GMT

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