ActiveState Community

post on pastebin service

Posted by dereine on 2008-03-19 03:09
OS: All / Any

is there any idea how to post some code automatically on a pastebin service like pastebin.com

stan | Wed, 2008-03-19 06:18

Hi dereine,

I am not familiar with pastebin, but I imagine you should be able to use an XMLHttpRequest object to talk to their server. The XMLHttpRequest object is available in Komodo just like it is available in Firefox. I am working on an extension that is using this, take a look at my thread “Better Textmate-style macros/templates + A questions for the Komodo devs”. There are many tutorials available on the internet as well. Here is one of the top results in Google: http://www.xul.fr/en-xml-ajax.html

I hope this helps.

troyt | Tue, 2009-06-23 10:53

Sorry, just stumbled across this thread. In case you haven't found this yet:

http://community.activestate.com/forum/pastebin-submission-macro