Added BufWritePre for php, js, and html