- Code: Select all
<head>
<script>
var foo = 'bar';
If I press alt + . it will close the <head> tag by inserting </head>. Why doesn't it close the script tag?
<head>
<script>
var foo = 'bar';<snippet>
<content><![CDATA[
<script type="text/javascript">
$1
</script>$0
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>script</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.basic</scope>
</snippet><snippet>
<content><![CDATA[
<script type="text/javascript">
$0
</script>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>script</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.basic</scope>
</snippet>Users browsing this forum: Google [Bot] and 8 guests