I had made a macro using the same trick in Ultraedit until I discovered a javascript function doing the same thing only better
For those interested and using ultraedit, create a .js file and put that code in:
UltraEdit.activeDocument.selectAll();
UltraEdit.activeDocument.returnToWrap();
add it to your scripts and here you go.