SQL Language Module for BBEdit provides syntax coloring of SQL commands in BBEdit. This is just what I needed.
Console Yourself: Understanding Mac OS X Logs