Tixanou@lemmy.world to Programmer Humor@lemmy.ml · 9 months agocoding chesslemmy.worldimagemessage-square44fedilinkarrow-up1664arrow-down126
arrow-up1638arrow-down1imagecoding chesslemmy.worldTixanou@lemmy.world to Programmer Humor@lemmy.ml · 9 months agomessage-square44fedilink
minus-squareoktoberpaard@feddit.nllinkfedilinkarrow-up1·9 months agoIt’s Markdown syntax. You can actually format it nicely in a code block: bool isEven( long long x ) { if ( x < 0 ) x = -x; if ( x == 1 ) return false; if ( x == 2 ) return true; return isEven( x - 2 ); } You do that by adding ``` above and below it. To force single line breaks, you can terminate your sentences with two spaces, or a backslash.
It’s Markdown syntax. You can actually format it nicely in a code block:
bool isEven( long long x ) { if ( x < 0 ) x = -x; if ( x == 1 ) return false; if ( x == 2 ) return true; return isEven( x - 2 ); }
You do that by adding ``` above and below it. To force single line breaks, you can terminate your sentences with two spaces, or a backslash.