Skip to content

Instantly share code, notes, and snippets.

@peabnuts123
Last active January 10, 2017 22:20
Show Gist options
  • Save peabnuts123/5c64ceaba887340ecd83 to your computer and use it in GitHub Desktop.
Save peabnuts123/5c64ceaba887340ecd83 to your computer and use it in GitHub Desktop.
Visual Studio CodeSnippet for JavaScript. <script> tag with type specified as "text/javascript"
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>JS script tag</Title>
<Author>Jeff Andrews</Author>
<Description>Inserts HTML script tag of type text/javascript</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>js</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>param</ID>
<ToolTip>Parameter</ToolTip>
<Default>param</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<script type="text/javascript" src="$param$"></script>]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment