<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Studio Editor Blog : margins</title><link>http://blogs.msdn.com/vseditor/archive/tags/margins/default.aspx</link><description>Tags: margins</description><dc:language>en-CA</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Code Samples, Documentation, and… Twitter!</title><link>http://blogs.msdn.com/vseditor/archive/2009/06/25/code-samples-documentation-and-twitter.aspx</link><pubDate>Fri, 26 Jun 2009 03:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9804551</guid><dc:creator>VSEditor</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/vseditor/comments/9804551.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vseditor/commentrss.aspx?PostID=9804551</wfw:commentRss><description>&lt;H4&gt;&lt;A title="VSX Home on Code Gallery" href="http://code.msdn.microsoft.com/vsx" target=_blank mce_href="http://code.msdn.microsoft.com/vsx"&gt;Samples&lt;/A&gt;&lt;/H4&gt;
&lt;P&gt;In an effort to help more people get started with Editor extensibility quickly and easily, we’ve recently posted some new code samples on the VS 2010 Editor.&amp;nbsp; Each of the links below will take you to a sample, complete with description, instructions, and a download of all the code you need.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A title="ToDo Glyph Sample" href="http://code.msdn.microsoft.com/ToDoGlyphFactory" target=_blank mce_href="http://code.msdn.microsoft.com/ToDoGlyphFactory"&gt;ToDo Glyphs&lt;/A&gt;:&amp;nbsp; Adds a visual glyph for ToDo items in a file &lt;/LI&gt;
&lt;LI&gt;&lt;A title="Hyperlink Sample" href="http://code.msdn.microsoft.com/hyperlinksample" target=_blank mce_href="http://code.msdn.microsoft.com/hyperlinksample"&gt;Hyperlink&lt;/A&gt;:&amp;nbsp; Enables Ctrl+click navigation to hyperlinks &lt;/LI&gt;
&lt;LI&gt;&lt;A title="Diff Classifier Sample" href="http://code.msdn.microsoft.com/diffclassifier" target=_blank mce_href="http://code.msdn.microsoft.com/diffclassifier"&gt;Diff Classifier&lt;/A&gt;:&amp;nbsp; Provides syntax highlighting for diff/patch files &lt;/LI&gt;
&lt;LI&gt;&lt;A title="Highlight Word Sample" href="http://code.msdn.microsoft.com/highlightword" target=_blank mce_href="http://code.msdn.microsoft.com/highlightword"&gt;Highlight Word&lt;/A&gt;:&amp;nbsp; Uses tagging and adornments to highlight all occurrences of the word under the caret &lt;/LI&gt;
&lt;LI&gt;&lt;A title="Caret Fish Eye Sample" href="http://code.msdn.microsoft.com/caretfisheye" target=_blank mce_href="http://code.msdn.microsoft.com/caretfisheye"&gt;Caret Fish Eye&lt;/A&gt;:&amp;nbsp; Transforms the text in the editor so it appears larger around your caret and smaller elsewhere&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;A title="Screenshot from the RegEx Editor Extension" href="http://editorsamples.codeplex.com/Wiki/View.aspx?title=Regex%20Editor" target=_blank&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="Screenshot from the RegEx Editor Extension" border=0 alt="Screenshot from the RegEx Editor Extension" src="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/CodeSamplesDocumentationandTwitter_124B6/RegEx%20Thumb_3.png" width=155 height=141&gt;&lt;/A&gt;&lt;A title="Demo Dashboard Extension" href="http://demodashboard.codeplex.com/" target=_blank&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="Demo Dashboard Extension" border=0 alt="Demo Dashboard Extension" src="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/CodeSamplesDocumentationandTwitter_124B6/Demo%20Dashboard%20Thumb_3.png" width=137 height=137&gt;&lt;/A&gt;&lt;A title="Screenshot from the IntelliSense Presenter Extension" href="http://editorsamples.codeplex.com/Wiki/View.aspx?title=IntelliSense%20Presenter"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="Screenshot from the IntelliSense Presenter Extension" border=0 alt="Screenshot from the IntelliSense Presenter Extension" src="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/CodeSamplesDocumentationandTwitter_124B6/IntelliSense%20Presenter%20Thumb_3.png" width=138 height=138&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There’s also source code available for the &lt;A title="RegEx Editor Sample Code" href="http://editorsamples.codeplex.com/Wiki/View.aspx?title=Regex%20Editor" target=_blank&gt;RegEx Editor&lt;/A&gt;, &lt;A title="Demo Dashboard Sample Code" href="http://demodashboard.codeplex.com/" target=_blank mce_href="http://demodashboard.codeplex.com/"&gt;Demo Dashboard&lt;/A&gt;, &lt;A title="IntelliSense Presenter Sample Code" href="http://editorsamples.codeplex.com/Wiki/View.aspx?title=IntelliSense%20Presenter" target=_blank&gt;IntelliSense Presenter&lt;/A&gt;, and &lt;A title="Image Insertion Sample Code" href="http://editorsamples.codeplex.com/" target=_blank mce_href="http://editorsamples.codeplex.com/"&gt;Image Insertion&lt;/A&gt; extensions, as seen on the &lt;A title="Visual Studio Gallery" href="http://visualstudiogallery.com/" target=_blank mce_href="http://visualstudiogallery.com/"&gt;Visual Studio Gallery&lt;/A&gt; and in the Extension Manager, so you can see how we implemented them :-)&amp;nbsp; You can find all of these and a variety of samples from other teams at the &lt;A title="VSX Home on Code Gallery" href="http://code.msdn.microsoft.com/vsx" target=_blank mce_href="http://code.msdn.microsoft.com/vsx"&gt;VSX sample homepage&lt;/A&gt; – check back periodically because we’ll continue to add new content from now to the final release of VS 2010.&lt;/P&gt;
&lt;H4&gt;&lt;/H4&gt;
&lt;H4&gt;&lt;A title="Documentation on the Visual Studio 2010 Editor" href="http://msdn.microsoft.com/en-us/library/dd885242(VS.100).aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/dd885242(VS.100).aspx"&gt;Documentation&lt;/A&gt;&lt;/H4&gt;
&lt;P&gt;We’ve also heard some feedback that you want more documentation, so here it is:&amp;nbsp; &lt;A title="Documentation on the Visual Studio 2010 Editor" href="http://msdn.microsoft.com/en-us/library/dd885242(VS.100).aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/dd885242(VS.100).aspx"&gt;Beta1 Editor documentation&lt;/A&gt;.&amp;nbsp; You’ll find walkthroughs on extensibility, help with MEF, a list of extension points, and more.&amp;nbsp; It’s a great place to get started.&lt;/P&gt;
&lt;H4&gt;&lt;A title="Visual Studio Editor (VSEditor) on Twitter" href="http://twitter.com/VSEditor" target=_blank mce_href="http://twitter.com/VSEditor"&gt;Twitter&lt;/A&gt;&lt;/H4&gt;
&lt;P&gt;You can always get in touch with the Editor team by commenting on this blog, posting in our &lt;A title="Visual Studio Editor Forum" href="http://social.msdn.microsoft.com/Forums/en-US/vseditorprerelease/threads?prof=required" target=_blank mce_href="http://social.msdn.microsoft.com/Forums/en-US/vseditorprerelease/threads?prof=required"&gt;Beta1 feedback forums&lt;/A&gt;, or &lt;A title="E-mail the Editor team" href="http://blogs.msdn.com/vseditor/contact.aspx" target=_blank mce_href="http://blogs.msdn.com/vseditor/contact.aspx"&gt;e-mailing us directly&lt;/A&gt;.&amp;nbsp; Now there’s one more way to get Editor news and keep in touch with the Editor team:&amp;nbsp; follow &lt;A title="Visual Studio Editor (VSEditor) on Twitter" href="http://twitter.com/VSEditor" target=_blank mce_href="http://twitter.com/VSEditor"&gt;@vseditor on Twitter&lt;/A&gt;!&amp;nbsp; We’re new to Twitter but are already tweeting about new samples, documentation, news, and all things Editor, so check us out!&lt;/P&gt;
&lt;P&gt;Brittany Behrens &lt;BR&gt;Program Manager, VS Platform Team&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9804551" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vseditor/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/extensibility/default.aspx">extensibility</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/MEF/default.aspx">MEF</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/margins/default.aspx">margins</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/adornments/default.aspx">adornments</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/classifiers/default.aspx">classifiers</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/Twitter/default.aspx">Twitter</category></item><item><title>Walkthrough: Getting Started with Editor Extensions</title><link>http://blogs.msdn.com/vseditor/archive/2009/06/10/extensions-extensions-everywhere.aspx</link><pubDate>Wed, 10 Jun 2009 21:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9724731</guid><dc:creator>VSEditor</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/vseditor/comments/9724731.aspx</comments><wfw:commentRss>http://blogs.msdn.com/vseditor/commentrss.aspx?PostID=9724731</wfw:commentRss><description>&lt;P&gt;In an attempt to bring extension building to the masses, the editor team submitted a hands on lab for TechEd this year that walks you through creating a real-world extension. While one of the goals of the lab is to show you how to build extensions in general, the hope was to also disseminate some of the methodologies and concepts behind our new extensibility story. &lt;/P&gt;
&lt;P&gt;Everyone has certainly seen the obligatory “Hello World” code for any new thing they try. I wanted the lab to be much more meaningful than that though, and instead provide you with a scenario that might be something you actually want to do. In this case, what you’re building is an extension that allows you to place walkthrough content directly inside of the editor in little chat-like bubbles.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/Extensionsextensionseverywhere_9D1D/walkthroughHoL.png" mce_href="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/Extensionsextensionseverywhere_9D1D/walkthroughHoL.png"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title="Screenshot from the TechEd Hands-On Lab" border=0 alt="Screenshot from the TechEd Hands-On Lab" src="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/Extensionsextensionseverywhere_9D1D/walkthroughHoL_thumb.png" width=454 height=443 mce_src="http://blogs.msdn.com/blogfiles/vseditor/WindowsLiveWriter/Extensionsextensionseverywhere_9D1D/walkthroughHoL_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;All of the walkthrough steps you see here are actually parsed from an XML file, which means that this extension adds meta content to the editor window without any modification of the code file it is displaying. Moreover, there is also another kind of visual created here; a little block around the word “System,” which when hovered over will then display a tooltip with extra information. These two visuals are called “Adornments” in the editor world, and are nothing more than Windows Presentation Framework (WPF) elements associated to a grouping of text. Last but not least, the green bar across the top of the image above (that has a label with “Position:” on it) is called a margin. This is another WPF element, but this time it is snapped to the outside edge of the editor’s window.&lt;/P&gt;
&lt;P&gt;So if you didn’t get a chance to make it to TechEd 2009, but would like to try out the lab, you’re in luck. It takes about an hour to complete (yes, you will be able to get all of that functionality done in an hour) and it takes the time to explain a bit about what you’re doing and why. I hope you find it useful, and look forward to the extensions you guys create!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://code.msdn.microsoft.com/extensionHoL2009" mce_href="http://code.msdn.microsoft.com/extensionHoL2009"&gt;Download Lab Files&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Chris Granger &lt;BR&gt;Program Manager | Visual Studio Platform&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9724731" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/vseditor/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/TechEd/default.aspx">TechEd</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/extensibility/default.aspx">extensibility</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/margins/default.aspx">margins</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/tooltips/default.aspx">tooltips</category><category domain="http://blogs.msdn.com/vseditor/archive/tags/adornments/default.aspx">adornments</category></item></channel></rss>