<p dir="auto">Atom attempts to comment HTML script tags with JavaScript comments:</p>
<p dir="auto">Example Code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">script.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">First toggle comment (Edit &gt; Toggle Comments/ ctrl+/)</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// &lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;"><pre class="notranslate">// <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">script.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Second toggle comment (Edit &gt; Toggle Comments/ ctrl+/)</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!-- // &lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt; --&gt;"><pre class="notranslate"><span class="pl-c">&lt;!-- // &lt;script src="script.js"&gt;&lt;/script&gt; --&gt;</span></pre></div>
<p dir="auto">Attempting to comment out a line with a script reference in the head of a document behaves strangely. It first attempts to comment out the line with two forward slashes. Toggle comments again then adds the correct html comments, but the forward slashes are still there. Activating toggle comments a third time removes the html comment but still leaves the forward slashes, you have to remove them manually.</p>