How to post source code

To post your source code

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
}

you first have to htmlencode it (e.g. using online services) obtaining:

#include &lt;stdio.h&gt;

int main() {
    printf(&quot;Hello, World!\n&quot;);
}

Then enclose it in the following pre tag:

<pre class="EnlighterJSRAW" data-enlighter-language="c" data-enlighter-linenumbers="true">
#include &lt;stdio.h&gt;

int main() {
    printf(&quot;Hello, World!\n&quot;);
}
</pre>

It will finally appear as:

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
}

NOTE: change "c" into the target source code language (es. "java").

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.