It has nothing to do with whether the error is code or not. You should use the option which renders the error message in the most readable manner. For me, this has normally been as quoted text rather than code but that is not true for every situation.
For instance, if we take this Java exception marked up as code it looks like this:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at Intro.<init>(Intro.java:15)
at Intro.main(Intro.java:58)
and as a quote like this:
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.(Unknown Source)
at Intro.(Intro.java:15)
at Intro.main(Intro.java:58)
The quote does not look good.
However, looking at this Oracle error marked up as code
ERROR at line 1: ORA-01400: cannot insert NULL into ("SCHEMA"."TMP_BEN_TEST"."A") ORA-02063: preceding line from DB1 ORA-06512: at line 18
It is more difficult to read; far better as a quote:
ERROR at line 1: ORA-01400: cannot insert NULL into
("SCHEMA"."TMP_BEN_TEST"."A") ORA-02063: preceding line from DB1
ORA-06512: at line 18
<
(and>
) character.#
@Arjan; you get random headings otherwise.