I would like to put the following code in an article that is written in AP Style:
puts 'Hello, world!'
How do I do this? If I were to put the code (C++, Ruby, whatever) in an article that was written in a newspaper, how would I write it? Is the entire thing surrounded by quotes, brackets, etc? How do you deal with line breaks?
I didn't find any help in this guide.