The Editor should auto detect the its mode taking the file extension