This is the basic syntax to show/display your code (not to execute) on the forum:
Syntax: (Most Important) <pre name="code" class="cpp">
//your program code goes here. Make sure to provide proper formatting. Do not write everything in one line.
// Break it more often than not. Break it to new line, so that it doesn't go out of boundary of this forum
//when you submit/publish it.
Make sure to replace < with < and > with > wherever it appears in your program code.
Ex: While writing header files in C.
Name of <pre> and <textarea> elements to use.
Turns gutter on or off on all processed code blocks.
Turns controls on or off on all processed <pre>.
Turns collapse on or off on all processed <pre>.
If showControls is false or switched, this value will be ignored.
Allows to specify the first line where line numbering starts. This is usefull if you want to illustrate where the code block is located relative to the file.
Will show row columns in the first line.
In the place of class=”cpp” as shown in above syntax, you can write any of the below programming language name. This would help it to highlight or differentiate the coding elements.