how to format computer code in APA style 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.
APA 7 provides for computer code: &quot;To present computer code, use a monospace font such as 10-point Lucida Console or 10-point Courier New.&quot;
For my APA 6 thesis, I used italics for my coding examples following APA 6 4.20 (a letter, word, or phrase cited as a linguistic example), taking the position that JavaScript is a language.