I just use vim and have a binding for F5 to build the current document then open the result in the browser window.