Tidying up HTML...

  • Page

    of 1

    Previous Next
  • Pirotic Moderator 29 Oct 2009 11:24:06 20,643 posts
    Seen 21 hours ago
    Registered 13 years ago
    Maybe one of you kind people can help me out here.

    I have a client who I send beautifully formatted html to, he makes a few changes, puts in some content, and sends me back a something which looks like the dog's chewed it up.

    broken indents, random line-breaks. Just.. urg!

    Is there any little app/tool which I can throw html at and it'll tidy it back up for me? Ideally one I can tweek so it does it how I like it? I figure there must be, but I'll be damned if I can find one.
  • consignia 29 Oct 2009 11:25:54 1,435 posts
    Seen 8 hours ago
    Registered 9 years ago
    Most Web IDEs do this. I know for a fact Eclipse does a good job of sorting out HTML/XML.
  • Deleted user 29 October 2009 11:26:26
    I use eclipse and this plugin , bit of a big app though if you are just using it fro HTML.
  • Pirotic Moderator 29 Oct 2009 11:27:59 20,643 posts
    Seen 21 hours ago
    Registered 13 years ago
    ...Ideally something which isn't written in Java and clunky as hell on Mac OSX. I guess I can install it again just for tidying up, what's the feature called? never spotted it back when I was forced at gun-point to use Eclipse.
  • mal 29 Oct 2009 11:28:21 23,994 posts
    Seen 1 hour ago
    Registered 13 years ago
    http://www.w3.org/People/Raggett/tidy/
  • JohnnyWashnGo 29 Oct 2009 11:30:33 1,544 posts
    Seen 1 day ago
    Registered 10 years ago
    Too much hate for Eclipse in this thread...
  • Deleted user 29 October 2009 11:35:49
    never spotted it back when I was forced at gun-point to use Eclipse.

    Outrageous, Eclipse is teh aw3some.
  • Pirotic Moderator 29 Oct 2009 11:59:11 20,643 posts
    Seen 21 hours ago
    Registered 13 years ago
    It's great fun having to select from about 30 different versions from it :D

    Eclipse For PHP Developers
    Eclipse For Java Developers
    Eclipse For the horde!
    Eclipse For people who raise a little finger when drinking from a cup of tea

    Urg. Why can't they just do what Visual Studio does and include it all together then ask you upon start-up what you want to do with it.
  • corimi 29 Oct 2009 12:04:40 1,310 posts
    Seen 4 years ago
    Registered 9 years ago
    Pirotic wrote:
    It's great fun having to select from about 30 different versions from it :D

    Eclipse For PHP Developers
    Eclipse For Java Developers
    Eclipse For the horde!
    Eclipse For people who raise a little finger when drinking from a cup of tea

    Urg. Why can't they just do what Visual Studio does and include it all together then ask you upon start-up what you want to do with it.
    Aptana is a nice Eclipse version for web devs. Though I spend my days in Coda / Textmate - they both have HTML tidy functionality via plugins
  • Pirotic Moderator 29 Oct 2009 12:05:31 20,643 posts
    Seen 21 hours ago
    Registered 13 years ago
    I use Textmate too :) what's the plugin called?
  • askew 29 Oct 2009 12:10:47 13,396 posts
    Seen 21 hours ago
    Registered 10 years ago
    In Textmate just click the little cog icon at the bottom, select HTML and then the Tidy function is at the bottom.
  • corimi 29 Oct 2009 12:11:34 1,310 posts
    Seen 4 years ago
    Registered 9 years ago
    Textmate is ace :D
    Actually, I think it's built in rather than part of a bundle. In HTML mode, try pressing Control-Shift-H

    The command is called Tidy, and you can edit the bundle to get it to do exactly what you want
  • askew 29 Oct 2009 12:16:59 13,396 posts
    Seen 21 hours ago
    Registered 10 years ago
    That's the one.
  • Page

    of 1

    Previous Next
Log in or register to reply