FHTML (for TextMate)


/ Published in: Perl
Save to your folder(s)

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:

1. In TextMate > Bundles > Bundle Editor > Show Bundle Editor
2. Create a New Command (I call it "Reformat HTML")
3. On right pane: **Save: Nothing** : **Command: (insert code)**
4. Bottom right pane: **Input: Selected Text or Document**
5. Bottom right pane: **Output: Replace Selected Text**
6. Settings: Key Equivalent: (whatever you want, I use: Command-Option-Shift-F which matches old school BBEdit)
7. Scope Selector: text.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.