2

This question already has an answer here:

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

marked as duplicate by user36296, Adam Liter, darthbith, Arun Debray, Werner May 17 '16 at 19:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from tex.stackexchange.com May 16 '16 at 22:45

This question came from our site for users of TeX, LaTeX, ConTeXt, and related typesetting systems.

  • 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 .