Skip to content

Instantly share code, notes, and snippets.

@Luis-Palacios
Created July 21, 2015 05:25
Show Gist options
  • Save Luis-Palacios/f8a45e17882d02db4989 to your computer and use it in GitHub Desktop.
Save Luis-Palacios/f8a45e17882d02db4989 to your computer and use it in GitHub Desktop.
Example of snippet for django template
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>form</Title>
<Author>Microsoft Corporation</Author>
<Shortcut>form</Shortcut>
<Description>Markup snippet for a HTML form</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>action</ID>
<ToolTip>Specifies where to send the form-data when a form is submitted</ToolTip>
<Default>/</Default>
</Literal>
<Literal>
<ID>method</ID>
<ToolTip>Specifies how to send form-data</ToolTip>
<Default>post</Default>
</Literal>
</Declarations>
<Code Language="html"><![CDATA[<form action="$action$" method="$method$">$selected$$end$</form>]]></Code>
</Snippet>
</CodeSnippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment