I’m using Ansible for configuring our servers. Ansible uses YAML-formatted files nearly everywhere. But only few files have a suffix of “.yml”. Sublime (3) considers the files “Plain text” so I don’t get syntax highlighting. I even added a hint by writing “—” into the first line of each file. But Sublime still thinks it’s just plain text.
How can I tell Sublime to set the syntax to YAML for such files regardless of the file name (because it doesn’t have a “.yml” suffix)?