Re: Tidy support

* David Wier wrote:
>I'm looking at integrating Tidy into my ASP/ASP.Net/HTML
>editor, ASP Express - I've created a temporary app to work
>with it, but I have a couple of hurdles and questions I
>can't seem to understand or get past.

What version have you tried?

>And I've tried adding my tags in different ways:
>aspnet101:side, <aspnet101:side, <aspnet101:side>, and the last real way the tag looks: <aspnet101:side runat="server"/>
>I ALWAYS get an errror message - <aspnet101:side> is not recognized
>What syntax do I use in the Config file?

`new-blocklevel-tags: aspnet101:side` should work, e.g.

  C:\>tidylib --new-blocklevel-tags x:y
  <x:y>...</x:y>
  line 1 column 1 - Warning: <x:y> is not approved by W3C
  line 1 column 1 - Warning: inserting missing 'title' element

(`tidylib` is a TidyLib based recent build of HTML Tidy)

>Also - is there a way to set Tidy so that, it will just pass
>over these things and tidy-up the HTML that it can?

That's the intention of these config options.

>2. What do I need to do to get permission to use it within
>my applications?

Take a look at http://tinyurl.com/2ioo

>3. What does "Warning: discarding unexpected <aspnet101:top>" really mean?

Tidy excludes this element from the tree, the result tree will not
include it.

>4. How can I set attributes for it to ignore? In my ASP.Net
>custom tags, I have things like : runat = "Server"

Tidy will keep unknown attributes and warns about them.

Received on Thursday, 7 November 2002 15:50:27 UTC