SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

SharpPaster addin

Last post 04-12-2007 9:16 AM by Hkproj. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-12-2007 9:16 AM

    • Hkproj
    • Top 200 Contributor
    • Joined on 09-27-2006
    • Italy
    • Posts 13

    SharpPaster addin

    Hi, yesterday I've made a useful addin (for me, and I hope also for you).
    It's SharpPaster. I don't know how I can describe it, because I don't speak very well english.
    But I can tell you how to use it.
    First of all you have to copy in the Clipboard some text, then you have to go in the SharpDevelop's
    text editor and click on the Menu after PInvoke.
    it will show you a Dialog where you can select the style of pasting.
    For example, if you select StringBuilder and you have copied some thing like:

    using System;
    using System.Text;
    using System.Windows.Forms;
    using ICSharpCode.Core;

    output will be(for C#):

    StringBuilder myBuilder = new StringBuilder();
    myBuilder.AppendLine("using System;");
    myBuilder.AppendLine("using System.Text;");
    myBuilder.AppendLine("using System.Windows.Forms;");
    myBuilder.AppendLine("using ICSharpCode.Core;");

    as you can see it allow you to paste your clipboard content using a 'style'.
    It supports also the VB.NET programming language.

    Addin file
    Source Code

    SharpPaster uses these StringResources:
    SharpPaster.Errors.StyleNotFounsMessage = 'Selected style not found'
    SharpPaster.Errors.UnsupportedLanguageMessage = 'Language you selected isn't available for this Style'
    SharpPaster.LanguagesLabel =  'Languages:'
    SharpPaster.Menu.MenuItem = 'Paste with SharpPaster'
    SharpPaster.PasteButton = 'Paste'
    SharpPaster.StylesLabel = 'Styles:'
    SharpPaster.Title = 'Paste with SharpPaster'

    this Addin is completely Open Source.
    Thanks to the PInvokeCodeGenerator class (by Matthe Ward).
    I hope you like it.

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.