Getting to know your pastebin
This pastebin was built using Apache Wicket. The original code was built by several folks as a tutorial for learning Wicket named 5 Days of Wicket. There's a link in the navigation to the source code which you can peruse at your leisure.
The idea of a pastebin is simple, copy all or a fragment of code you need help with into the content box on the page. Select which language the code is in for nice syntax highlighting provided by the SyntaxHighlighter JavaScript library. You will receive a small URL to paste into an email, IRC, mailing list, or instant message to receive help on your issue.
Our backend data store is utilizing MongoDB and the ever-versatile Redis. Both tools make pasting, and the history of pastes work lightning fast.
We have plugins for 5 different development environments so you can paste directly from the editor.
Upload any image by dragging and dropping an image file to the browser while in a new paste window. We'll upload it directly to imgur.com and attach a link to the paste. If you're in Google Chrome you can also paste an image from the clipboard.
Utilizing mousetrap.js with our Wicket integration library wicket-mousetrap we've added a few handy
keyboard shortcuts to get you through the pasting process faster: ?
- show help, N
- new paste,
H
- history, left
or shift+left
- previous page or first page,
right
or shift+right
- next page or last page,
cmd+s
or ctrl+s
- submit the paste (yes, even while in the editor, and yes, we are ignoring the default) and
R
- for replying to a paste you're viewing
Highlighting can be achieved by appending line numbers after the paste identifier in the URL:
/view/1/1-3
or /view/1/1,2,3
or /view/1/1-2,3
Raw text of paste by appending "text" to the URL i.e. /view/1/text
Download paste by appending "download" to the URL i.e. /view/1/download
Copy and paste contents of a paste by double-clicking the content area