Color formatted code (add snippet of code in codechef discuss)

Hey coders
I just found how to add color formatted code as this.
Use 3 backticks ``` before the code .
We can try this to any of languages.



#include<bits/stdc++.h>
using namespace std;
bool succeed,satified;

void practice()
{
    if(satified)
        succeed=true;
    
    
}
void main()
{
    succeed=false;
    while(!succeed)
    {
        practice();
    }
    if(succeed)
    {
        cout<<"Dont Stop"<<endl;
    }

} 

use ``` at the end line to end this snippet

2 Likes