I wrote a small addin last evening for all the beautiful MonoDevelop users. This allows you to send your code (either the whole file or a selection) to PasteBin.com from right inside the IDE.
This is the first of many text-editor productivity centric addins I hope to release in the future. You can find the code here: http://github.com/ninjagod/MonoDevelop.EditorTools/tree/master. The code is under the MIT/X11 license.
To build, check out MonoDevelop.EditorTools into extras, and build against a built copy of MonoDevelop (and make sure that the newer version of the assemblies are present in your search path). This has been tested against trunk. It builds an addin directly into main/build/addins. I hope to merge this into the MonoDevelop trunk though it’s a really really small feature.
Still to be finxed: 1. The “Copy link” button does not work because I don’t know how to use the clipboard through C#. 2. I need to retrieve the user’s name from the settings 3. I need to remember things like subdomain, name, etc and load them up from a PropertyBag.
And the elusive download link: PasteBinHelper.dll [via] (You can put this in the md-trunk/main/build/Addins/MonoDevelop.EditorTools/PasteBinHelper.dll) and it should work. Since the Addin specifically requests assemblies of version 2.1.0 (trunk), it might not work with 2.0 (don’t let that stop you from trying though)


0 Response to “Send to pastebin from within MonoDevelop”