W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2005

configuring htmltidy in c#

From: Edward <edd@unwrong.com>
Date: Fri, 21 Oct 2005 13:44:03 +0100
To: <html-tidy@w3.org>
Cc: <develop@lists.sourceforge.net>
Message-ID: <Zen-1ESwFc-0005Cz-FS@pythagoras.zen.co.uk>
Hi,

 

I have a question regarding setting the configuration options for HtmlTidy
in C#.

 

I downloaded the Tidy.Net files from here:

http://wiki.jaranweb.com/index.php/Tidy

 

And have been able to use most of the configuration options in my C# class
like this:

 

doc.SetOptInt(TidyOptionId.TidyForceOutput, 1);

doc.SetOptBool(TidyOptionId.TidyXhtmlOut, 1);

doc.SetOptBool(TidyOptionId.TidyBodyOnly, 1);

 

I had to guess the syntax for most of these as the C# version doesn't match
the configuration option syntax in the quick reference:

http://tidy.sourceforge.net/docs/quickref.html

 

I've got all the configuration working except for "wrap"
(http://tidy.sourceforge.net/docs/quickref.html#wrap)

I've tried as many combinations of the words Wrap, Line, Length etc that I
can think of but none work. Do you know if this is supported in the .Net
version and/or what the correct syntax would be?

 

Regards,

 

Ed
Received on Saturday, 22 October 2005 06:53:11 GMT

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