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?
Add a comment
|
1 Answer
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.
-
2Or put an empty comment string
<!-- -->
before the code block. Commented Sep 4, 2015 at 19:36