I’ve joined Medium recently and kept seeing all the cool ways in which the writers were adding code into their own articles. I could say “I wish I could do that” and keep writing the way I have been, but that’s not who I am. I was always the kid that asked “why?” and sometimes got in trouble for “talking back” when I was genuinely interested in the reasoning so that I could understand. And as you would suspect, I did the research on this so that you won’t have to.
I found the below various ways to add code into your medium article and embedded them into this…