<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>DXCore</title>
        <link>http://onteorasoftware.com/category/14.aspx</link>
        <description>DXCore</description>
        <language>en-US</language>
        <copyright>Ken Tucker</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>DXCore</title>
            <link>http://blog.onteorasoftware.net/archive/2007/09/16/dxcore.aspx</link>
            <description>&lt;h3 align="center"&gt;DXCore&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;p&gt;
Developers express has a free product DX Core. It is a framework to develop add ins for visual studio. With it you can paint on the ide, work with the text, etc. 
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;
I answer alot of questions in the newsgroups and forums. From time to time I copy code from the ide and when it pasted it looses the format. To overcome this limitation I usually paste the text in notepad. I then recopy the text and paste it in the question I am answering to preseve the format. 
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;
Today I used the dxcore to add the copy as text to context menu when you right click on selected code. Step one download and install the &lt;a href="http://www.devexpress.com/Downloads/NET/DXCore/"&gt;DXCore.&lt;/a&gt; Note the dx core does not work with the express editions of visual studio. 
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;
Step 2 from the DevExpress menu added to visual studio select New Plug in. This will create a project for the addin. 
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;
Step 3 Drag a Action on to the designer from the toolbox. Set it action name, button text, and desciption to Copy as Text. Set the CommonMenu to EditorContext. Double Click on the action and add this code to the Action_Execute Event. &lt;br /&gt;
&lt;br /&gt;
    Private Sub Action1_Execute(ByVal ea As DevExpress.CodeRush.Core.ExecuteEventArgs) Handles Action1.Execute&lt;br /&gt;
        Dim template As String = CodeRush.Selection.Text 
&lt;/p&gt;
&lt;p&gt;
        Clipboard.SetDataObject(template) 
&lt;/p&gt;
&lt;p&gt;
    End Sub 
&lt;/p&gt;
&lt;p&gt;
Run this from the ide. It will open up another instance of the ide. Open a project and select some code and right click on it. You will see the copy as text in the menu, Boy does dev express make it easy. 
&lt;/p&gt;
&lt;img src="http://blog.onteorasoftware.net/aggbug/113.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Ken Tucker</dc:creator>
            <guid>http://blog.onteorasoftware.net/archive/2007/09/16/dxcore.aspx</guid>
            <pubDate>Sun, 16 Sep 2007 18:34:08 GMT</pubDate>
            <wfw:comment>http://blog.onteorasoftware.net/comments/113.aspx</wfw:comment>
            <comments>http://blog.onteorasoftware.net/archive/2007/09/16/dxcore.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://blog.onteorasoftware.net/comments/commentRss/113.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>