Textmate Ruby Macro - Quote Lines

Textmate Ruby Macro - Quote Lines

#!/usr/bin/env ruby -wKU
STDIN.readlines.each {|e| print '"'+e.gsub(/\n/,'"'+"\n") ; print ""+(e.include?("\n") ? "" : "\"\n")  }

#Set Save "Nothing"
#Set Input "Selected Text" or "Character"
# and
#Set Output "Replace Selected Text"

Comments

Popular posts from this blog

Vim vi how to reload a file your editing