W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

Re: Request for Tidy to ignore 'user defined' tags

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 2 Jul 1999 21:27:43 +0200
Message-ID: <00b301bec4c5$a41f2ae0$c7e0a8c0@de>
To: "Dave Raggett" <dsr@w3.org>
Cc: <html-tidy@w3.org>
| > I like to use Tidy to clean up and verfiy the html generated by Tango.
| > Unfortunately, when I run the Tango generated code through build 242 I
| > get a warning and nothing appears in the output section.  I have to
| > remove the <@include> tags to get output.
|
| Tidy works by creating a clean html parse tree and printing it
| out. You can tell tidy about new tags but I need more information
| before determining what to do about Tango.

Maybe a new option in the config file can do so in a more general way.

Ignore-Tags: <@include>, <@whatever>, <something>

Tidy ignores those tags or, if there is a end tag, anything between that tag
and it's end-tag.

Oh, i've just seen the new-*-tags option. Couldn't this be used for the wished
effect?

But i do not prefer this possibility, i would use e.g. lynx -source to get the
parsed source from a Tango Server and then run tidy like:

LYNX -SOURCE http://tangoserver.com/file.html | tidy -config tidy.conf

The only problem with this technique is, that -m (for modifying the source)
wont work, but you can workaround that with a script that requests e.g.
http://server/file.html and puts the tidy output back to that file by
referencing locally, as /file.html.
In Dos Batch language this would look like:

for %a in (*.html) do call LYNX -SOURCE http://tangoserver.com/%a >%a

regards,
 Bjoern
Received on Friday, 2 July 1999 16:02:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT