Textmate Command: Trim Paste


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

Use this command in Textmate to paste some text without any surrounding whitespace.


Copy this code and paste it in your HTML
  1. php -r "echo trim(shell_exec('/usr/bin/pbpaste | iconv -f MacRoman -t utf-8'));"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.