Fix bug with enabling syntax highlighting for recognised document types