How to properly quote code in the forums

Want to know how to properly quote code in this forum? Have a look below:

Or manually by:

Result:

if user.name == 'thomthom'
  user.feed(Beer.new)
end
6 Likes