isn't there some markup hook that i can use to do that?
i'm getting tired of fetching some old C file that i want to simply paste in and having to manually add spaces to many of the lines.
this seems silly.
r b-j
You could do:
<pre>
code
code2
code3
</pre>
which gives you
code code2 code3
I think triple backticks code
should work to:
``` code more code some final code ```
code
more code
some final code
This should also work:
<code>
code
code2
code3
</code>
which renders as:
code
code2
code3
The <pre>
tag has trouble with HTML special characters <
and >
:
<pre>
#include <limits.h>
</pre>
gives:
#include
class pre; std::vector<pre> prepositions_vector;
in your C++...
$\endgroup$
Jan 12, 2017 at 17:38
In fact, just use the curly braces when answering: the SE answer "IDE" has this function automatically. Just hit the curly brace button after selecting the code you want indented.
command-mode >
. $\endgroup$