If a psychological methods journal only specifies that the entire manuscript has to be in APA style, how should I format computer code snippets in the manuscript to be submitted? I see nothing mentioned in the actual APA manual regarding this.
Is there any convention? In specific I wonder whether or not I should include syntax highlighting.
(The code currently in question is R, but it could also be, say, Python or JavaScript.)
EDIT: The original question referred to the 6th edition of the APA manual. As HumberSean answered, computer code style is now specified in the 7th edition.