Announcement

Collapse
No announcement yet.

Tidy, anyone?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tidy, anyone?



    I was wondering if anyone had successfully used HTML Tidy on Miva-enhanced
    code. I have a large bunch of legacy pages which need dragging in to the
    21st century and was looking for a way of speeding the process.
    Tidy lets you define additional tags as block, empty and inline so that it
    won't reject them outright, but it then seems to try to apply the
    restrictions on block and inline elements to them, shifting end tags to
    where they are "implied" by the start of a new block element, e.g.
    <MvIF>

    </MvIF> gets changed to <MvIF></MvIF>



    Is there some way around this?

    --
    Richard Grevers
    Between two evils always pick the one you haven't tried




    #2
    Tidy, anyone?



    Unfortunately, you're always going to run into problems,
    especially with <MvIF>. You can run into situations where
    depending on the conditions you may have multiple start or
    end tags. One example would be the <body> tag.

    On the site I run, I can output 1 of 3 different body tags.
    One has no parameter, next has just the basic, and the
    third has a javascript onLoad(). Yet there is only 1
    closing </body> tag. This confuses Tidy. Also with <MvGO>,
    the tags can span multiple files. An extreme example would
    be if I had those <body> tags in a file called header.mv
    and the final closing </body> tag in a file called
    footer.mv.

    Unless there has been a radical change to Tidy, I think
    you're stuck doing it by hand.

    /ScottMc

    --- Richard Grevers <[email protected]> wrote:

    > I was wondering if anyone had successfully used HTML Tidy
    > on Miva-enhanced
    > code. I have a large bunch of legacy pages which need
    > dragging in to the
    > 21st century and was looking for a way of speeding the
    > process.
    > Tidy lets you define additional tags as block, empty and
    > inline so that it
    > won't reject them outright, but it then seems to try to
    > apply the
    > restrictions on block and inline elements to them,
    > shifting end tags to
    > where they are "implied" by the start of a new block
    > element, e.g.
    > <MvIF>

    </MvIF> gets changed to <MvIF></MvIF>


    >
    > Is there some way around this?
    >
    > --
    > Richard Grevers
    > Between two evils always pick the one you haven't tried
    >
    >
    >

    Comment


      #3
      Tidy, anyone?



      Not sure if this is the same type of tool as Tidy, but you might want to
      look at Pretty HTML.=20
      I can't seem to find the page for the Author, but here's a link where
      you can download it:
      <A HREF ="http://www.ntware.com/workstation/html_accessories_6.html">http://www.ntware.com/workstation/html_accessories_6.html</A>
      (halfway down the page)

      I like it cause it's customizable, lets me add tags (like MvIF) and
      define the formatting for the tags.

      Good luck.

      Andrew Noce=20
      Director of Technology
      Hotel Interactive, Inc.=20
      Hospitality Industry News and Services=20
      <A HREF ="http://www.hotelinteractive.com=20">http://www.hotelinteractive.com=20</A>



      =20



      > -----Original Message-----
      > From: Scott McC [mailto:[email protected]]=20
      > Sent: Sunday, January 16, 2005 11:56 AM
      > To: [email protected]
      > Subject: Re: [meu] Tidy, anyone?
      >=20
      >=20
      > Unfortunately, you're always going to run into problems,=20
      > especially with <MvIF>. You can run into situations where=20
      > depending on the conditions you may have multiple start or=20
      > end tags. One example would be the <body> tag.
      >=20
      > On the site I run, I can output 1 of 3 different body tags.
      > One has no parameter, next has just the basic, and the
      > third has a javascript onLoad(). Yet there is only 1
      > closing </body> tag. This confuses Tidy. Also with <MvGO>,
      > the tags can span multiple files. An extreme example would
      > be if I had those <body> tags in a file called header.mv
      > and the final closing </body> tag in a file called
      > footer.mv.
      >=20
      > Unless there has been a radical change to Tidy, I think
      > you're stuck doing it by hand.
      >=20
      > /ScottMc
      >=20
      > --- Richard Grevers <[email protected]> wrote:
      >=20
      > > I was wondering if anyone had successfully used HTML Tidy
      > > on Miva-enhanced
      > > code. I have a large bunch of legacy pages which need
      > > dragging in to the =20
      > > 21st century and was looking for a way of speeding the
      > > process.
      > > Tidy lets you define additional tags as block, empty and
      > > inline so that it =20
      > > won't reject them outright, but it then seems to try to
      > > apply the =20
      > > restrictions on block and inline elements to them,
      > > shifting end tags to =20
      > > where they are "implied" by the start of a new block
      > > element, e.g.
      > > <MvIF>

      </MvIF> gets changed to <MvIF></MvIF>


      > >=20
      > > Is there some way around this?
      > >=20
      > > --
      > > Richard Grevers
      > > Between two evils always pick the one you haven't tried
      > >=20
      > >=20
      > >=20

      Comment

      Working...
      X