/ Published in: Perl
I modified this excellent Perl script, created by John Watson (http://www.watson-net.com) to be used with TextMate to reformat your HTML for easier readability. Here's how to use it:
- In TextMate > Bundles > Bundle Editor > Show Bundle Editor
- Create a New Command (I call it "Reformat HTML")
- On right pane: Save: Nothing : Command: (insert code)
- Bottom right pane: Input: Selected Text or Document
- Bottom right pane: Output: Replace Selected Text
- Settings: Key Equivalent: (whatever you want, I use: Command-Option-Shift-F which matches old school BBEdit)
- Scope Selector: text.html
You need to login to post a comment.
