<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saffron Stroke - Your Web Design Resource &#187; code snippets</title>
	<atom:link href="http://www.saffronstroke.com/tag/code-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saffronstroke.com</link>
	<description>Design Blog</description>
	<lastBuildDate>Wed, 11 Jan 2012 06:36:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Import custom code snippets from Expression Web 2 to Expression Web 3</title>
		<link>http://www.saffronstroke.com/2009/11/11/import-custom-code-snippets-from-ew2-to-ew3/</link>
		<comments>http://www.saffronstroke.com/2009/11/11/import-custom-code-snippets-from-ew2-to-ew3/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 10:54:29 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[Expression Web 2]]></category>
		<category><![CDATA[Expression Web 3]]></category>
		<category><![CDATA[import code snippets from Expression Web 2]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=766</guid>
		<description><![CDATA[In my earlier article Insert Code Snippets in Microsoft Expression Web 3, we saw how to use the built-in code snippets and create your own snippets to make your coding speedier. But the custom code snippets that you created in earlier version of Expression Web (EW 2) are not accessible in EW 3. A simple [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/11/11/import-custom-code-snippets-from-ew2-to-ew3/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F11%2F11%2Fimport-custom-code-snippets-from-ew2-to-ew3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F11%2F11%2Fimport-custom-code-snippets-from-ew2-to-ew3%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>In my earlier article <a title="Insert Code Snippets in Microsoft Expression Web 3" href="http://saffronstroke.com/2009/09/02/insert-code-snippets-in-microsoft-expression-web-3/" target="_blank">Insert Code Snippets in Microsoft Expression Web 3</a>, we saw how to use the built-in code snippets and create your own snippets to make your coding speedier. But the custom code snippets that you created in earlier version of Expression Web (EW 2) are not accessible in EW 3. A simple solution to this is to import the code snippet xml file to your EW 3 and use it.</p>
<p>The built-in code snippets are found in these locations:</p>
<p><strong>In Expression Web 2</strong></p>
<p>C:\Program Files\Microsoft Expression\Web 2\Templates\1033\Snippets12\FPSnippets.xml</p>
<p><strong>In Expression Web 3</strong></p>
<p>C:\Program Files\Microsoft Expression\Web 3\en\Snippets\snippets.xml</p>
<p>Any custom code snippets you add are stored into your roaming profile. In Expression Web 2, they were stored at:</p>
<p>C:\Users\User Name\AppData\Roaming\Microsoft\Expression\Web 2\Snippets\SnippetsCustom.xml</p>
<p>In Expression Web 3, they are located at:</p>
<p><strong>Windows Vista</strong></p>
<p>C:\Users\ User Name\AppData\Roaming\Microsoft\Expression\Web 3\Legacy\Expression\Web 3\Snippets\SnippetsCustom.xml</p>
<p><strong>Windows XP</strong></p>
<p>C:\Users\ User Name\Application Data\Microsoft\Expression\Web 2\Snippets\SnippetsCustom.xml</p>
<p>Both these ‘xml’ files are different. While working in EW3, when you add code snippets they will be stored in the ‘SnippetsCustom.xml’ in Expression Web 3 folder.</p>
<p>To continue using the SnippetsCustom.xml from Expression Web 2 in Expression Web 3, before you start working in Expression Web 3, replace it with the one in Expression Web 2 folder. You need not delete the SnippetsCustom.xml that was created by default in Expression Web 3 folder, just rename it, and copy-paste the Expression Web 2 ‘xml’ file over here. Now you can use all your older snippets from Expression Web 2 in Expression Web 3 and any more you add would be updated in this file itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/11/11/import-custom-code-snippets-from-ew2-to-ew3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Insert Code Snippets in Microsoft Expression Web 3</title>
		<link>http://www.saffronstroke.com/2009/09/02/insert-code-snippets-in-microsoft-expression-web-3/</link>
		<comments>http://www.saffronstroke.com/2009/09/02/insert-code-snippets-in-microsoft-expression-web-3/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 16:16:03 +0000</pubDate>
		<dc:creator>Minal</dc:creator>
				<category><![CDATA[Expression Web]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[Expression Web 3]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://saffronstroke.com/?p=685</guid>
		<description><![CDATA[A code snippet is a piece of code. If there is some code that you may need to use often, you can create a code snippet for that code. Microsoft Expression Web has few built-in code snippets that you can use as they are or you can modify them as per your requirement. To create [...]]]></description>
			<content:encoded><![CDATA[<div align="left" style="float: none; clear:right; padding: 0px 5px 5px 0px;"><a name="fb_share" type="button_count" share_url="http://www.saffronstroke.com/2009/09/02/insert-code-snippets-in-microsoft-expression-web-3/"></a></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;; margin-top:-2px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F09%2F02%2Finsert-code-snippets-in-microsoft-expression-web-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.saffronstroke.com%2F2009%2F09%2F02%2Finsert-code-snippets-in-microsoft-expression-web-3%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A code snippet is a piece of code. If there is some code that you may need to use often, you can create a code snippet for that code. Microsoft Expression Web has few built-in code snippets that you can use as they are or you can modify them as per your requirement.</p>
<p><strong>To create a code snippet:</strong></p>
<ol>
<li>From the <strong>Tools</strong> menu choose <strong>Page Editor Options</strong>.</li>
<li>In the Page Editor Options dialog box, switch to the <strong>Code Snippets</strong> tab and click <strong>Add</strong>.</li>
<li>In the <strong>Add Code Snippet</strong> dialog box, fill out the following fields:
<ul>
<li>Keyword: Type a unique word that describes the code snippet, its function. This would help you locate the code snippet from the list of code snippets.</li>
<li>Description: A description of the code snippet.</li>
<li>Text: Type in the text that is to be displayed by the code snippet.</li>
</ul>
</li>
<p><img class="alignnone size-full wp-image-534" title="add_code_snip" src="http://www.saffronstroke.com/wp-content/uploads/2009/09/add_code_snippet_dlg1.jpg" alt="add_code_snip" /></p>
<li>When done click OK and the newly created code snippet will be added to the existing list of snippets.</li>
</ol>
<p><strong>To insert a code snippet in a page</strong></p>
<p>Follow these steps:</p>
<ol>
<li>In Code View or Split View of your page, place the cursor where you want to add the code snippet and do one of the following:
<ul>
<li>Key in CTRL + Enter.</li>
<li>Go to Edit menu &gt; Intellisense &gt; Code Snippets.</li>
<li>Display the Code View toolbar (Right click on any toolbar and choose Code View) and select <img class="alignnone size-full wp-image-686" title="list_code_snippets_but" src="http://www.saffronstroke.com/wp-content/uploads/2009/09/list_code_snippets_but.jpg" alt="list_code_snippets_but" width="21" height="21" /> button (List Code Snippets button).</li>
</ul>
</li>
<li>In the displayed list of snippets, do one of the following:
<ul>
<li>Scroll down to find your code snippet, hit enter, tab or double click on it.</li>
<li>Type in the name of the snippet and once found, hit enter, tab or double click on it.</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.saffronstroke.com/2009/09/02/insert-code-snippets-in-microsoft-expression-web-3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

