Editor

Editor

The editor is a react version of the Ace editor. You can find their docs here.

Saving Snippets

When you first log onto Snippets, you are show a blank editor. There is a dropdown for you to select the language you are using in the top right corner above the editor. This contains a list of every language supported by Ace, and thereby supported in Snippets.

By showing the editor on the homepage, Snippets encourages you to get started on what's most important: Writing code.

Use the save button on the right of the language selector to save your snippet. You will be presented with a pop up to name your Snippet. Give your snippet a name and click save.

Loading snippets

When you click save, the dialog will disappear, and your snippet will be saved. The saved snippet name will also appear on the left side of the editor.

You can click the name of the snippet to load that snippet into the editor. Be warned, clicking a snippet will load that snippet immediately, and Snippets will not ask if you saved your current snippet. It will simply remove it to load the new snippet. We are working on a better user experience for this.

Overwriting snippets

To overwrite a snippet, give it the same snippet name as the existing snippet. Snippet will overwrite the existing snippet immediately, again without a warning.

Snippets2024 Snippets