Help
Using the pastie bot
The pastie bot can be found on freenode in #rubyonrails or #ruby-lang. Obtaining a paste URL is easy.
- send a public message to pastie (e.g. "pastie: hi!")
- pastie will send you a private message with a link
- click the link and paste your code
- pastie will notify everyone in the original channel of your paste
Logging in
You will need to say hi to pastie in channel on IRC to get a login/paste URL. The URL you're given will log you in automatically when clicked. When you see your name in the right hand corner, you're golden... literally.
Uploading a File
Select a file and click “Paste / Upload” (you will need to be logged in). Yes, it even thumbnails PDFs, but that's a little flakey right now.
Advanced Pasting
Highlighting currently does not work for plaintext.
Sections
You can divide your paste into different sections by separating them with ## lines as shown below.
## controller.rb controller code here ## model.rb model code here
When pastie sees this he'll turn each of your ## lines into separate headings and each section will have it's own line numbering.
Creating just one section can effectively title your paste.
Syntax highlighting sections differently
You can specify a different language for each section by using it's short name.
## readme.txt [plain_text] Once upon a time in a galaxy far, far away... ## fixes.diff [diff] bug fixes go here
Currently supported languages (and short names):
- ActionScript → actionscript
- C/C++ → c++
- CSS → css
- Diff → diff
- HTML (ERB / Rails) → html_rails
- HTML / XML → html
- Java → java
- Javascript → javascript
- Objective C/C++ → objective-c++
- Pascal → pascal
- Perl → perl
- PHP → php
- Plain text → plain_text
- Python → python
- Ruby → ruby
- Ruby (on Rails) → ruby_on_rails
- Shell Script (Bash) → shell-unix-generic
- SQL → sql
- YAML → yaml
Requesting a pastie from someone else
Pastie listens for things like the following in channel:
- unfo-: could you pastie me that?
- technoweenie: could you pastie that to me right away?
- court3nay: could you pastie us an example?
They key is address someone (eg: “Dreamer3:”) and mention “pastie me|us|that”. The person you address will receive a private message telling them you'd like them to paste something.
Example: “Dreamer3 is requesting a paste from you. Click the link and paste away: http://pastie.caboo.se/paste/3432”
When they complete their paste the channel is notified, as usual.
Pastie