2

I answered a question recently copying the answer from another site cplusplus.com, the link is in the answer). My issue is that code does not format properly. I selected all the code and hit the {} button and even indented by hand, but is is not working? Am I doing something wrong?

0

1 Answer 1

4

It's not formatting correctly because it's inside a numbered list, inside a bulleted list. Each additional level of nesting requires another 4 spaces of indentation to get formatted as code. So in this case, you need 12 leading spaces.

1
  • 2
    Or put an empty comment string <!-- --> before the code block. Commented Sep 4, 2015 at 19:36

You must log in to answer this question.

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