Would be nice if the editor itself prompted to do this for me. e.g. when it notices a new js snippet it could open a preview pane where the code is properly formatted so the user can opt into the enhancement.
Could start this feature out small with just one particular language as a pilot and see how many people accept the suggested beautification. Alternatively this feature could start off as a moderator tool and if it proves itself it could be opened to the public.