I have an HTML snippet which adds a Label and Input element. But when I invoke the snippet, it doesn't let me alter the literal's, it just adds the tags with default values.
I made a different snippet for C# and that worked as expected ($value$), but even though I've copied the code it doesn't work.
Result when invoking the snippet:
<label for="MyInput">My Label</label> <input type="text" id="MyInput" name="MyInput" />
The snippet:
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Shortcut>sltinput</Shortcut>
<Keywords>
<Keyword>Html</Keyword>
<Keyword>input</Keyword>
<Keyword>label</Keyword>
</Keywords>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Input and Label element</Title>
<Author>Stein Lundbeck</Author>
<Description>Creates an input and matching label</Description>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>name</ID>
<ToolTip>Name of element</ToolTip>
<Default>MyInput</Default>
</Literal>
<Literal Editable="true">
<ID>label</ID>
<ToolTip>Label content</ToolTip>
<Default>My Label</Default>
</Literal>
<Literal Editable="true">
<ID>type</ID>
<ToolTip>Input type</ToolTip>
<Default>text</Default>
</Literal>
</Declarations>
<Code Language="HTML" Delimiter="$"><![CDATA[<label for="$name$">$label$</label> <input type="$type$" id="$name$" name="$name$" /> $end$]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>