Test of code in blog post - eventual success

Here’s a test to see if the ‘code’ tags work as advertised. For the inline version I’ll write [1, 2, 3].each do {|number| puts "You're number #{number.to_s}" which is a simple Ruby block.

And in it’s own paragraph how does it look?

["wine", "bread", "cheese"].each do |treat|
puts "pass me some of that tasty #{treat}"

Okay, WordPress, let’s see … well, the inline looks pretty nice, but I’m not pleased with the stand-alone paragraph form. The indentation was not preserved as I had intended.

Update: after installing the “preserve formatting” plugin from Coffee 2 Code, the indentation has been restored. OMG that’s great.

Leave a Reply