Line breaks in code blocks?
-
How do I do line breaks in code blocks?
I surround the following block with that strange ' sign:
int x;
int y;
x=0;\n
y=0;<p>
return x+y;Here is what comes out:
int x; int y; x=0;\n y=0;<p> return x+y;
And yes, I have read the help
It just doesn't help because it doesn't seem to have anything to do with how things work in this forum. -
@Asperamanca Use ``` (3 backticks) for code blocks and single backtick is meant to make it format in special monospace format. Putting it in 3 backticks will make it appear properly:
int x; int y; x=0;\n y=0;<p> return x+y;
Also there is list of most frequently used tags at the bottom of page when you edit or post.
-
Thank you. The three backtick thing doesn't seem to be documented in the help I linked above.