My Lemny
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Vordimous@lemmy.ml to Programmer Humor@lemmy.ml · 9 months ago

Comenting code

lemmy.ml

external-link
message-square
89
link
fedilink
1
external-link

Comenting code

lemmy.ml

Vordimous@lemmy.ml to Programmer Humor@lemmy.ml · 9 months ago
message-square
89
link
fedilink
  • The Ramen Dutchman@ttrpg.network
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    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";
    
    • essteeyou@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

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

      • The Ramen Dutchman@ttrpg.network
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

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

        • essteeyou@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          9 months ago

          Thanks for your code review. :-D

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 56 users / week
  • 352 users / month
  • 1.49K users / 6 months
  • 0 local subscribers
  • 36.9K subscribers
  • 1.75K Posts
  • 31.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org