cdb748c2c4
Adds the ability to set filetype on open by extracting it from the file using a regex on the first few lines (default 2).