You are viewing a single thread.
View all comments View context
2 points
*

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:

permalink
report
parent
reply
2 points

Yep, I know, but my code isn’t in a real language.

permalink
report
parent
reply
1 point

You can also not do it, it was just an additional comment!

permalink
report
parent
reply
2 points

Thanks for your code review. :-D

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.2K

    Monthly active users

  • 816

    Posts

  • 7.7K

    Comments

Community moderators