You can use Array#join to concatenate Array elements to a String:
[1, 2, 3].join('+') # => "1+2+3"
Array#* has the same effect when you pass it a String:
[1, 2, 3] * '+' # => "1+2+3"
This tip was submitted by Ciur Eugen.
You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.