News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How do you post a block of code

Started by christruk42, March 16, 2021, 06:54:13 PM

Previous topic - Next topic

christruk42

Downvote this;



I can't seem to do it, I'm using 'new reddit' so the four spaces format dosent work. I've heard you need to use 3 backticks. I tried doing it like this:



```



console.log('hi')



```



to no avail

Suryavarman

#1

#include <iostream>
#include <string>

int main()
{   
    std::cout << "you can use the BBCode."  << std::endl;
    std::cout << '[' << "CODE" << ']' << std::endl;
    std::cout << '[' << "\CODE" << ']' << std::endl;
   
    return 0;
}



Miguel Gimenez

You can use the button with a # over the emoticons or (code)Use square brackets instead of brackets(/code)