Hi John,
I use the Unix command xmllint as a Text Filter, this works well for XML, also for parts of HTML.
Best if it proves that everything is OK, somewhat more tedious if it gives errors, e.g. because line count refers to the lines of the selection.
Copy these lines to a file and save it as xmllint.sh (or anything you want) to the TextWrangler's Text Filters folder at
~/Library/Application Support/TextWrangler/Text Filters/
then call it on the whole text or the selection:
-----------------
#!/bin/sh
XMLLINT_INDENT=$'\t' xmllint --format --encode utf-8 -
# XMLLINT_INDENT=$'\t' : set indentation to "tab"
# - at end gives STDIN
-----------------
Hope this is useful.
Best
Thomas
> --
> You received this message because you are subscribed to the
> "TextWrangler Talk" discussion group on Google Groups.
> To post to this group, send email to
textwr...@googlegroups.com
> To unsubscribe from this group, send email to
>
textwrangler...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/textwrangler?hl=en
> If you have a feature request or would like to report a problem,
> please email "
sup...@barebones.com" rather than posting to the group.