1

How can I post a code block in a COMMENT box? Not just inline code like this, but to create something legible with a line break:

Like this is my code, and I want it separate
so people can read it
4
  • mmmm ... Perhaps in TeX? Commented Apr 30, 2013 at 0:09
  • 3
    See comment here mathematica.stackexchange.com/q/23722/193 Commented Apr 30, 2013 at 0:11
  • I don't really find code-as-latex too readable though.
    – Szabolcs
    Commented May 1, 2013 at 1:57
  • Hi, this is an old question but I was wondering if there is any updates on this? Or if it's the same. When I need a new line, I have been using the TeX $$ $$ To create new lines (doesn't work on meta), but this is not perfect.
    – ydd
    Commented Dec 7, 2023 at 15:20

1 Answer 1

6

From here:

Comments have no line breaks and generally no block-level formatting (such as extended blocks of code).

See this as well.

1
  • Fun link (the bottom this one) - thanks. Belisarius' TeX code pasting trick does not seeem to work here in meta, but it does work in the main site, so it is possible.
    – wolfies
    Commented Apr 30, 2013 at 14:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .