OpenPastebin is here to help you collaborate on debugging code snippets. If you're not familiar with the idea, most people use it like this:
- submit a code fragment to pastebin, getting a url like http://openpaste.org/1234/
- paste the url into an IRC,IM or E-Mail conversation
- someone responds by reading and perhaps submitting a modification of your code
- you then view the modification, maybe using the built in diff tool to help locate the changes
XML-RPC
XML-RPC is remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned.
XML-RPC API URL
http://openpaste.org/api/xml-rpc/
XML-RPC system methods
- Array system.getCapabilities(void) - lists all the capabilites that the XML-RPC server has
- Array system.listMethods(void) - returns an array of strings, each of which is the name of a method implemented by the server
- Array system.methodSignature(String methodName) - returns an array of possible signatures for this method. A signature is an array of types.
- String system.methodHelp(String methodName) - returns a documentation string describing the use of that method. If no such string is available, an empty string is returned.
- Array system.multicall(Array request) - method takes one parameter, an array of 'request' struct types. Each request struct must contain a methodName member of type string and a params member of type array, and corresponds to the invocation of the corresponding method.
XML-RPC Openpaste methods
- PostDetail Openpaste.addPost(String code, String syntax, String author, String desc, Boolean private, String password, String secret_key) - Adding new Post
- Array Openapaste.getSupportedSyntax(void) - returns array of Syntax stucts
- String Openapaste.getCode(Integer id, String password) - Getting code by postId
- String Openapaste.getCode(String url, String password) - Getting code by url
Data Objects
| PostDetail |
| Key |
Type |
Value |
| ID |
int |
ID of the newly submitted post |
| URL |
String |
URL of newly submitted post |
| Syntax |
| Key |
Type |
Value |
| acronym |
String |
acronym of supported language |
| name |
String |
name of supported language |
This is API library for
OpenPastebin service - collaborative debugging tool,
http://openpaste.org.
API library is based on XML-RPC method calls, and is written for various languages
and for various platforms.
For more details of API, see
API Help for description.
OpenPaste API library for .NET Framework
Package contains:
.\Demo\ - Windows Forms Demo application with example of fetching syntax list, saving and viewing new post.
.\Library\ - OpenPasteAPI library and CookComputing XML-RPC library
Package author: phactor (Jozef Ševčík)
Download: pastebin.net_v1.0.0.0.zip
OpenPaste API library for PHP5
Package contains:
.\Demo\ - demonstrating saving of new post.
.\Library\ - OpenPasteAPI library and PHP XML-RPC library
Package author: char0n (Vladimir Gorej)
Download: pastebinPHP5_v1.0.0.0.tgz
OpenPaste command line tool for UNIX like systems
Using OpenPaste API library for PHP5. Instalation notes are located in README file
Package contains:
.\doc\ - OpenPasteAPI documentation
.\xml-rpc\ - PHP XML-RPC library
.\OpenPasteAPI.php - openpaste API library
.\openpaste.php - openpaste command line tool version 1.0.0.0
.\README - readme file
Package author: char0n (Vladimir Gorej)
Download: openpaste_v1.0.0.0.tgz
OpenPaste extension for Emacs
Package contains:
.\openpaste.el
Package author: iobrain
Download: openpaste.el (from http://sourceforge.net)
OpenPyPaster
Small tool in Python to facilitate posting to OpenPaste.org
Package contains:
.\LICENsE.TXT
.\openpypaster.py
.\README.txt
Package author: Arthur Richards
Download: openpypaster-0.2.tar.gz
OpenPasteBeans
OpenPasteBeans provides integration between code in Netbeans IDE and OpenPaste.org service.
Package author: phactor (Jozef Ševčík)
Download: Official Netbeans plugin site
Openpastebin can be translated into any language compatible with UTF-8.
We need new translators to translate the Openpastebin into more languages.
You can obtain
translation file here. After translated send it pls on
this email
as an attachement and make a notice about what language you translated file into.
In feature, translation module will be coded, and new translators can subscribe.
You will be able to choose which language you want to translate into and leave email.
Every week translation will be validated and checked if there are new language nodes to translate.
If so email with notice and translation file will be send to you
How can i make my post secret ?
When submitting a code fragment click on the link Make post secret
and supply a secret password. With this password your friends/collaborators will be later able
to unlock the post. After submitting a code fragment in secret mode, this post will be
automaticaly unlocked for you, so you don't need to unlock it manualy.
If you want more security feel free to use HTTPS protocol openpastebin provides.
Unlocked post are remembered only in your current session. Later user registration will be provided
for you, so that openpastebin could remeber all your already unlocked posts.
Your passwords are storead HASHED, so there is no chance for anoyone
to discover UNHASHED form of your password.
When you view a post, you have the opportunity of editing the text -
this creates a new post, but when you view it, you'll be given a 'diff' link which allows you to compare the changes between the old and the new version.
This is a powerful feature, great for seeing exactly what lines someone changed
OpenPastebin uses
Daniel Unterbergers unique
diff implementation
You can also make diff between two independent posts by clicking
Make Diff link under
highlighted code. Or you can do it manualy by requesting the url like:
http://openpaste.org/diff/34/45/. This will
make a diff between post #34 and #45.
You are able to control wrapping of your code. If lines of your code are too long
and u don't want to use vertical scrolling u can use the Wrapping option bar
located next to Syntax bar. When you use option Wrap, the lines of the code will
pefectly fit your screen resolution
How can I delete my own post ?
While submiting a code fragment to OpenPastebin you can supply a secret key.
When viewing your post, click the Erase link, enter your secret key and click on Erase button.
Your node will be pernamently erased.
Your secret keys are stored HASHED, so there is no chance for anyone to discover UNHASHED form of your secret key
How can I add comments to my post ?
When viewing post, click [Add comment ] on the bottom of the page. Little window for adding comment will open.
How can I view comments of my post ?
When viewing post, click Comments (X) on the bottom of the page. Comments will be generated for you.
OpenPastebin suports GZIP HTTP compression implemented in PHP code. If your browser supports
GZIP encoding, OpenPastebin will send you gzip encoded content(this saves a lot of transfer). If your browser doesn't support
gzip encoding, what is unlikely, content of OpenPastebin will be send as pure text.
You can easily download your posted code.
How?
Under your highlighted code there are four links clicking on you can
download your code in various formats.
Supported formats are:

TXT

GZIP

HTML

PDF
Download urls are also
wget friendly, which means you can download your code using wget client on
any shell account:
root@openpaste.org$ wget http://openpaste.org/download/67.txt
root@openpaste.org$ wget http://openpaste.org/download/67.txt.gz
How can i view the history of OpenPastebin ?
It's simple. Just click on link
OpenPastebin History and u can list in all pastebin nodes (short versions or compact versions) present in database.
How can i change skin of my OpenPastebin ?
Look into top-right corner of the page. There is a select option bar with skins that are currently
awaillable. Just select skin which suits you the best. Don't be afraid to be redirected to elsewhere.
When you change skin all url parameters remains the same, only skin changes. You can write your own skins
and
send them to me and i will add them to OpenPastebin distribution.
You can download default style here:
style_dark.css.
How can i send my post to my mate by email ?
When you view a post, notice a
little email icon and 'Email' link on right-bottom corner of your formated post.
Click on the icon or the 'Email' link to send your post.
How can i upload file on OpenPastebin ?
When making new post, click the
[upload file] link above the Code TEXTAREA.
Remeber, your file size is limited to
100KB.
How can i print my formated code ?
When you view a post, notice a
little printer icon and 'Print' link on right-bottom corner of your formated post.
Click on the icon or the 'Print' link to print your formated code.
You can also click onto
'Print into:' links. Currently supported formats you can
print into are:

HTML

PDF
OpenPastebin is beeing periodicaly cleaned. Currently the interval between cleaning processes is 6 months. It means pastebin is beeing cleand every 6 months from 6 months old posts.
It will always be free, our hosting and maintenance costs are paid for through advertising.
No you cannot have source code of this OpenPastebin right now. OpenPastebin is still under developement and if the final version
is released you will be most welcome to download the source.
- post expiry time
- user registration
- diff tree
OpenPastebin supports 77 programing languages now.
OpenPastebin has full support for
UTF-8 encoding
Technologies used:
- PHP4
- Smarty - Templating system
- GesHi - Generic Syntax Highlighter (77 syntax files)
- XHTML 1.0
- CSS
- Javascript
- AJAX
- MySQL
Current OpenPastebin version: 3.5.1 stable
Software developed by
char0n (Vladimir Gorej)
Homepage:
http://mortality.sk
Domain paid by: blade, jimy, wao, char0n
Translators
Czech translation: dc~ (Martin Kubicek)
The code of this pastebin application has nothing to do with code of
pastebin.com. This code is pure OO and gets all it can get from PHP4.