Is there anyway way to collapse text all on 1 line with TextMate or Netbeans IDE?
You mean like visually collapse (why would you do that?) or in the sense of "remove linebreaks"? For the latter case, search for "\n
" and replace with "", make sure "Regular expression" is checked.