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.
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):
- Objective-C/C++ → objective-c++
- ActionScript → actionscript
- Ruby → ruby
- Ruby on Rails → ruby_on_rails
- Diff → diff
- Plain text → plain_text
- C/C++ → c++
- CSS → css
- Java → java
- Javascript → javascript
- HTML / XML → html
- HTML (ERB / Rails) → html_rails
- Bash (shell) → shell-unix-generic
- SQL → sql
- PHP → php
- Python → python
- Pascal → pascal
- Perl → perl
- YAML → yaml
- C# → csharp
- Go → go
- Apache (config) → apache
- Lua → lua
- Io → io
- Lisp (common) → lisp
- D → d
- Erlang → erlang
- Fortran → fortran
- Haskell → haskell
- Literate Haskell → literate_haskell
- Makefile → makefile
- Scala → scala
- Scheme → scheme
- Smarty → smarty
- INI → ini
- Nu → nu
- TeX → tex
- Clojure → clojure
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.