as I didn’t get TidyService to work correctly with UTF8 umlauts, I created a UNIX Shell Script wrapper for html tidy as it comes with OS X that does the job at least for TextWrangler:
- open TextWranglers “Unix Filters Folder”

- create a file named e.g. “Tidy Html.sh”,
- paste the following lines into the file and save it:
#!/bin/sh # run "tidy" on the file given as 1st (and only) parameter. # /usr/bin/tidy -utf8 -asxhtml -indent -wrap 100 -quiet "$1" 2> /dev/null
- now you can run
tidy on files opened in TextWrangler, even remote files. - assign a keyboard shortcut (I used CTRL-T in the shot above) via the “Unix Filters” Palette:

Comments 8
Hey Vielen Dank für Deinen Tipp funktioniert einwandfrei!
Posted 17 Mai 2010 at 11:38 am ¶Awesome tip! Thanks for sharing!
Posted 16 Nov 2010 at 3:55 am ¶Awesome tip. Thanks!
Posted 01 Feb 2011 at 7:32 pm ¶That was a fantastic tip, saved me so much time on a project.
Posted 25 Apr 2011 at 3:32 pm ¶Thank you so much for this tip!
Posted 08 Jun 2011 at 10:31 pm ¶That’s excellent! Thanks!
Posted 26 Okt 2011 at 1:29 pm ¶Just started using Mac. Couldn’t get Tidy service to work at all (Lion – 10.7). Don’t even need it with your super-helpful script!! Thanks a TON!
Posted 14 Dez 2011 at 7:42 pm ¶Worth mentioning that (at least on my installation) the new script is not usable until you quit and re-start TextWranger.
Posted 20 Jan 2012 at 11:24 am ¶Post a Comment