How to quote programming code in AP Style?
+1
−0
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.
This post was sourced from https://writers.stackexchange.com/q/25405. It is licensed under CC BY-SA 3.0.
0 comment threads