How do comments work?
How do I add code while writing comments and how do I enter a newline character?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.Sign up to join this community
You can't put newlines in a comment codeblock, but you can do inline code by using the backtick character. It looks like this
and it appears below the escape key on most keyboards which is sometimes the same key as the tilde (for example, on US English keyboards):
Surrounding something in backticks lets it appear as an "inline code block" and you could
put them almost anywhere you like, even breaking across new lines.
int c; c++; sprintf(); but notice there's no coloration, of course.
E.g. typing `something` in the editor produces
something on the page
Place this symbol: ` before and after the code. (On many keyboards, this "backtick" is the button to the left of "1".)