Skip to content

Instantly share code, notes, and snippets.

@jimschubert
Created September 25, 2012 19:47
Show Gist options
  • Save jimschubert/3784016 to your computer and use it in GitHub Desktop.
Save jimschubert/3784016 to your computer and use it in GitHub Desktop.
Visual Studio snippet to surround xml select with CDATA tags
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>
<!-- _locID_text="title" _locComment="" -->cdata</Title>
<Author>Jim Schubert</Author>
<Description>
<!-- _locID_text="description" _locComment="" -->XML snippet for surrounding select with CDATA tags</Description>
<SnippetTypes>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
</Declarations>
<Code Language="XML">&lt;![CDATA[$selected$$end$]]&gt;</Code>
</Snippet>
</CodeSnippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment