May 20, 2021
How to embed (or) insert code directly on Medium using a MacBook?
Hello everyone, are you wondering on how to include your code for example Python, R, SQL, C, C++ etc on Medium application when you are trying to publish a story?
The solution for the above query is simple:-
Copy the code and paste it in your story then select (or) highlight the code and press command+option+6 at a time. (OR)Press command+option+6 at a time and release you will get code blocks to insert your code.
(OR)Type ``` in a new line. You will be prompted with a code block to insert your code.
Happy coding…