<p dir="auto">A lot of files are really just .xml files, but end in different extensions. This is just one example</p>
<p dir="auto">It would be nice if<br>
A) If on AutoDetect, check the the first line if it contains &lt;?xml ....&gt; then parse as xml language<br>
B) Associate an extension with a particular language</p>
<p dir="auto">Someone might have already created a package for it, but haven't found one yet.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">I will explain this issue referring to a third–party package, although the problem <em>might</em> be realted to atom's grammar auto detection feature:</p>
<p dir="auto">Cucumber package for Gherkin syntax and step definitons (<a href="https://github.com/edda/cucumber-atom/">https://github.com/edda/cucumber-atom/</a>) defines two grammars:</p>
<ol dir="auto">
<li>Gherkin (file types: <code class="notranslate">feature</code>)</li>
<li>Cucumber Steps (file type: <code class="notranslate">steps.rb</code>)</li>
</ol>
<p dir="auto">Whilst the first grammar is set correctly on files with the extension <code class="notranslate">*.feature</code>, the second grammar is not detected and instead will set grammar to "Ruby" for files <code class="notranslate">*_steps.rb</code>.</p>
<p dir="auto">Any ideas please?</p>
<h2 dir="auto"></h2>
<p dir="auto">/cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/izuzak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/izuzak">@izuzak</a></p>