There are 2 ways to embed code snippets into an article on Coil. For short snippets you can highlight the code and then click on the code snippet button "< >". 

Which turns it into a snippet like:

For larger snippets embedding via github gists is recommended. 

  1. Make a public gist on
  2. Click the "Embed" drop down and select "Share"
  3. Copy the share url via the clipboard button
  4. Paste that into an article on and it will auto embed. 

Did this answer your question?