Preformatted Text

Pre

This is a test
    using
pre
 with different 
         indentations
View code
<pre>This is a test
    using
pre
 with different 
        indentations</pre>

Pre with Code

#include <stdio.h>

// this is a line with really long text to show that now the gray background goes all the way, instead of limiting to the wisth of the main.
int main(void) {
  printf("Hello World");
  return 0;
}
View code
<pre><code>#include <stdio.h>

// this is a line with really long text to show that now the gray background goes all the way, instead of limiting to the wisth of the main.
int main(void) {
  printf("Hello World");
  return 0;
}</code></pre>