Text Factories are ways to store batches of text operations for reuse.
Nearly all of the items on the Text menu, plus a few other operations
can be batched. Factories can be authored in BBEdit, and applied from
either BBEdit or TextWrangler.
There are a couple of HTML Tidy operations (including HTML/XML reflow)
available as factory operations.
If you want to spend the time to roll your own operations,
TextWrangler does have one of BBEdit's most powerful features: The
Shebang menu. The shebang menu allows you to apply scripts (perl,
shell, python, ruby, etc, etc, etc) to text in TextWrangler windows,
so for instance, you could pipe the unformatted XML file through a
command line tool to reflow it, and get the results back in the same
window you started from.
> Also I'm wondering if these questions would be answered by upgrading
> to BBEdit?
We offer a 30 day fully functional demo of BBEdit, so you can try it,
and see if it improves your productivity. Personally, I can't live
without it. :-)
Steve
> The shebang menu allows you to apply scripts (perl,
> shell, python, ruby, etc, etc, etc) to text in TextWrangler windows,
> so for instance, you could pipe the unformatted XML file through a
> command line tool to reflow it, and get the results back in the same
> window you started from.
Brilliant, thanks Steve. Formatting XML has been a nice-to-have on my
list for ages.
On a quick search I found this:
With a minute's set up I can now format XML within my favourite
editor :-)
Jared: just replace BBEdit in the instructions with TextWrangler
(it's often worth searching on BBEdit instead of TextWrangler.)
> Incidentally I have ColdFusion files currently associated with the XML
> color coding scheme... I'm wondering if it's possible to add other
> language profiles to TW to make it easier to work with CF, etc.?
If you're wanting to build a language module for syntax colouring,
etc. then check out Codeless Language Modules. These are XML files
which tell TextWrangler how to display your particular language. See
Chapter 13 and Appendix C of the built-in User Manual.