<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I posted an updated (and much more functional than my previous) version of the command this email refers to, did you see the most recent version?<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Just a note:  I'd leave out the "target" attribute if you distribute the snippet, it invalidates pages coded in HTML Strict or XHTML 1.1...[1]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Brett</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[1]<A href="http://www.w3.org/MarkUp/2004/xhtml-faq#target">http://www.w3.org/MarkUp/2004/xhtml-faq#target</A></DIV><DIV><BR><DIV><DIV>On Nov 12, 2006, at 6:46 PM, Jasper van der Meulen wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>The version from textmate itself was just i little bit too basic.</DIV>Here's my simplified version...<DIV><BR class="khtml-block-placeholder"></DIV><DIV><a href="${1:`</DIV><DIV>   # if the clipboard contains a single line, let’s use that</DIV><DIV>   export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100</DIV><DIV>   if [[ $(pbpaste|wc -l) -eq 0 ]]</DIV><DIV>      then pbpaste|perl -pe 's/&(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)/&amp;/g'</DIV><DIV>      else echo <A href="http://site.com">http://site.com</A>/</DIV><DIV>   fi</DIV><DIV>`}" ${2:target="${3:_blank}"} ${4:title="${5:${TM_SELECTED_TEXT:Link text...}}"}>${6:${TM_SELECTED_TEXT:Link text...}}</a>$0</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>For sure their can be made some changes .. so i'll listen carefully :-)</DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>