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

Re: Leaving <!-- comments --> unchanged

From: Stephen Reynolds <sreyn0lds@yahoo.com>
Date: Fri, 24 Mar 2000 11:45:37 -0600
To: html-tidy@w3.org
Message-ID: <OF98757A9E.3C55060E-ON8625686D.0051E679@rfdinc.com>

At 13:12 17/01/00 +0000, Dave Raggett wrote:
> > Is there any way I can get HTML Tidy to leave my <!-- comments
> > --> unchanged?
>
>One idea would be for Tidy to keep a note that a comment started
>on a new line. It could then preserve this in the output. I will
>look into this.
>
>Regards,
>
>-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
>tel/fax: +44 122 578 3011 (or 2521) +44 385 320 444 (mobile)
>World Wide Web Consortium (on assignment from HP Labs)

Thanks for the reply. I've been experimenting with Tidy, trying to find a
work-around to make Tidy treat comments the same as block level tags.

I manage a state government web site where a number of authors (with
varying levels of html skills) should be editing the files. I've designed
templates for people to use that have lots of comments describing the
structure of the documents for instance:

<!-- paste text here -->
or
<!-- header starts here do not edit -->

When I happened upon HTML Tidy (in the latest version of Homesite) is
seemed to me to be a great way for us to maintain a reasonably consistent
style and layout control across a group of authors.

However before I can use it as a management tool it will be essential for
Tidy to leave the all important comments alone. The Homesite GUI for tidy
really helps for those authors who are not comfortable working with Tidy at
the command line level in a DOS window

Of course I could always remove all my comments, and apply the Dilbert
principle where lack of documentation is a serious job security strategy :
-)

Regards, Steve
_________________________________________________
Stephen Reynolds - Adelaide - South Australia
mailto:spr@ozemail.com.au
http://www.ozemail.com.au/~spr/sitework/index.htm

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Friday, 24 March 2000 13:15:05 GMT

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