Posted By

rareyman on 02/12/10


Tagged

textmate html perl


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

hsousa
brandonjp
adrianrf
kandarv


FHTML (for TextMate)


 / 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:

  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  

You need to login to post a comment.