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"
#!/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