Posting sourcecode to WordPress

In: General

3 Jan 2008

So that I can search for this tidbit later on.. Here’s how you post Ruby code to WordPress:

def amethod
puts 0
end

Just ditch the \ at the end of the first line.

Share and Enjoy:
  • Digg
  • del.icio.us

Comment Form

About this blog

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit semper laoreet dictum, quam diam dictum urna, nec placerat elit nisl in quam. Etiam augue pede, molestie eget, rhoncus at, convallis ut, eros. Aliquam pharetra.

Photostream

    Hanging out with Steve @ Collar City CrossfitHanging out with Steve @ Collar City CrossfitTired @ Crossfit

Lifestream