Awesome Open Source
Awesome Open Source

Code Medium

Browser extension that simplifies writing code in Medium posts. Quickly create and edit Github Gists without leaving the editor.

Code Medium


  • Adds a button in the text toolbar for creating a new Gist and adding it to the post.
  • Gists can be created as either public or secret (unlisted).
  • Double click on an existing Gist to edit or delete it.
  • Deleting a gist will remove both the embed from the post and the gist from your account. To only remove the embed, just click on it and press the delete key as usual.
  • Syntax highlighting for the most popular programming languages thanks to react-ace!
  • Fixes the height of the Gists in the editor, to display them without being cut and without the extra padding (
  • Shortcuts: press "ALT + SHIFT + 0" while in a new paragraph to quickly open the Gist popup. The key combination can be changed in the browser settings.

Installing from store

Building manually

  • Install dependencies with yarn
  • To build for development and watch for changes run yarn start
  • To build for production run yarn run build

Files will be generated under dist/chrome and dist/firefox.

Authorizing the application

This extension uses the GitHub Gist API to create and edit gists, this means that you'll have to authorize the OAuth application for the "gist" permission.

Once the extension is installed, toggle the extension modal by clicking the toolbar button or by double clicking on an existing gist to show the login button.

Known Limitations

Gists composed of multiple files aren't fully supported:

  • Currently, only single-file gists can be created.
  • When double clicking on an existing multi-file gist, only the first file will show up in the modal. However, you can still edit that file normally and delete the whole gist.
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,072,185
Editor (31,934
Chrome Extension (9,785
Edit (7,488
Medium (3,888
Gist (2,424
Firefox Extension (2,026
Browser Extension (1,749
Github App (566
Medium Editor (83