I have just had half a dozen comments of unnecessary back-and-forth with another user because they told an OP that...
In my opinion error messages should be formatted as text.
... and I didn't immediately realise that by "text" they meant preformatted text, rather than regular text. It turned out they were paraphrasing a passage of the ban FAQ, which says:
Format code, errors, and data as text (using code formatting).
I feel it would be a slight improvement with respect to clarity to rephrase that as...
Format code, errors, and data as code blocks.
... or, as Makyen suggests...
Code, errors, and data should be text formatted in code blocks.
(I considered editing it myself, but the ban FAQ is a locked Meta question.)
P.S.: Originally this question also suggested, as alternative phrasings...
Format code, errors, and data as preformatted text (using code formatting).
... and...
Format code, errors, and data as preformatted text.
... but the comments and answers here have convinced me that the "preformatted" term makes them avoidably clumsy.