I’ve been putting some code, in a dirty way, just in the middle of my posts. I decide to learn a little bit more about wordpress and get things done properly. A small ruby code with indentation as sample.
#!/usr/bin/ruby
if ARGV.length == 0
puts "no argv"
end
After trying <code>, <blockquote> and <pre> directives I think the best result was achieved using <pre> with <code>, just like the sample above. See the code bellow.
<pre><code>
#!/usr/bin/ruby
if ARGV.length == 0
puts “no argv”
end
</code></pre>
Anyone has a better solution for that? More details here.
