The following page has FREE ONLINE formatting available :
Instant SQL Formatter
Related articles:
Programming Flow Overview, Code Format and Commenting your Code
Aaron Bertrand: My stored procedure "best practices" checklist
http://www.sqlusa.com/articles/query-optimization/