Vordimous@lemmy.ml to Programmer Humor@lemmy.ml · 10 个月前Comenting codelemmy.mlimagemessage-square106fedilinkarrow-up11.22Karrow-down111
arrow-up11.21Karrow-down1imageComenting codelemmy.mlVordimous@lemmy.ml to Programmer Humor@lemmy.ml · 10 个月前message-square106fedilink
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up2·edit-210 个月前It renders correctly on the web as well for me. But the ``` being on their own line is how to write it properly, as stated this website among many others. This way, you can put the intended programming language on the same line as the first ```, ensuring proper colour coding! Ex. echo "Hello $name\n"; echo "Hello $name\n"; EDIT I checked on mobile, it rendered odd on Jerboa for me: Now it is fixed:
minus-squareessteeyou@lemmy.worldlinkfedilinkarrow-up2·10 个月前Yep, I know, but my code isn’t in a real language.
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up1·10 个月前You can also not do it, it was just an additional comment!
It renders correctly on the web as well for me.
But the ``` being on their own line is how to write it properly, as stated this website among many others.
This way, you can put the intended programming language on the same line as the first ```, ensuring proper colour coding!
Ex.
echo "Hello $name\n";
EDIT I checked on mobile, it rendered odd on Jerboa for me:
Now it is fixed:
Yep, I know, but my code isn’t in a real language.
You can also not do it, it was just an additional comment!
Thanks for your code review. :-D