I know this is a stupid question, but I am encountering some problems with my thesis. I would like to post a question about an error in a tabular format. How do I write down the codes so that someone can see them in the grey-box like this one? Thank you.

enter image description here

| | | | | |
  • 5
    If you indent each line of code with four spaces, it will look like that. See also the formatting guide for details and more style tips. – Arun Debray May 16 '16 at 22:20
  • 3
    The simplest is to type your code, highlight it with the mouse/trackpad and click the pair of braces in the icon bar above the edit window. – Bernard May 16 '16 at 22:22
  • 8
    See How do I mark code blocks? – Torbjørn T. May 16 '16 at 22:59

Browse other questions tagged .