I have a JS file (~2000 lines) and want to strip all trailing whitespace. I am using Coda and it has a plugin but it keeps crashing the app. I feel like this is a simple enough thing where there might be an online tool but I can not find one.
Thanks in advance!
Here, I wrote you a little script: http://codepad.org/vZNPOF1a
Just paste in your code where it says, in the text area below, click submit, then click on the output link up above to get the raw output.