Integrated front-matter detection for files