W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: piping tidy output to a pager program

From: Morten Bo Johansen <mojo@image.dk>
Date: Wed, 20 Mar 2002 16:50:43 +0100
To: html-tidy@w3.org
Message-ID: <20020320155043.GA9943@gatsby.dyndns.org>

Thanks to those who replied. To those of you using Lynx I now
have this little tip on validating pages "on the fly" I'd like
to share. If you place these lines in your lynx.cfg

  EXTERNAL:http:lynx -source %s | tidy -e 2>&1 | most:TRUE
  EXTERNAL:file:lynx -source %s | tidy -e 2>&1 | most:TRUE

you can then validate the current page by pressing "," or
validate a page pointed to by a link by pressing "."  

This requires Lynx to be compiled with the ./configure option
--enable-externs. I think that's the default on most
precompiled packages.

"most" is my pager program of preference. Change it to
more/less or whatever suits you.

I have the line below in lynx.cfg to feed the validation output
to my mail program with the purpose of documenting html
problems to the webmaster of the site in cases where the
problems are so grave that they impede navigation.

  EXTERNAL:http:lynx -source %s | tidy -e >/tmp/tidy.tmp ; mutt -s "HTML problems at you site" -i /tmp/tidy.tmp

Even if it only helps writing webmasters once in a blue moon
one should still do it, I think ;)



PS: I am not on the list so please cc me if you have any

"So little time, so little to do." (Oscar Levant)
Received on Wednesday, 20 March 2002 10:52:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC