1

I need an online tool to save code snippets.

Not just for saving, but also having a simple interface to search for the snippets. And maybe download the repository if needed.

I was using Notebark, but it is an offline tool. It has a tree structure and we can create folders and then nodes under it. It also has a search feature to search the entire tree for any keyword existing in the name of the node or its content.

Something similar would be nice.

  • 1
    Could you explain more about "easy to search/retrieve"? – meisyal Mar 7 '17 at 16:00
  • Notebark has a tree structure and is similar to the Microsoft Help files. I could create a folder say CSS and then create nodes with specific names under it. We could just browse all nodes under CSS if needed. I could also then type a keyword to search in the entire tree. – Qwerty Mar 8 '17 at 5:38
2

Here you go:

https://gist.github.com/

There you can create you own snippets, share, favorite, tag, etc...

  • I did check that. The site often goes down at login. – Qwerty Mar 9 '17 at 17:02
2

I would recommend these following web-apps:

  1. TiddlyWiki

    TiddlyWiki is a unique non-linear notebook for capturing, organizing and sharing complex information. It has tags and search. So, it makes you easy to organize your code snippets. TiddlyWiki also has many useful plugins. If you want to highlight your syntax, you can use syntax highlighting.

    TiddlyWiki is all JavaScript so you can run it locally in your browser. But, if you need a server to host it, you can also do that.

  2. GistBox

    GistBox is a web application for organizing code snippets. This software relies on your GitHub account. So, in other words, they access your code snippets saved in GitHub Gist. The good thing is this software supports color-coded labels and searching-filtering. Color-coded labels enable you to organize your code snippets by language and soon. Beside that, there are feature-rich code editor, keyboard shortcuts, and collapsible file views.

  • I tried GistBox and it's quite good. The interface feels a bit dated Anno 2017, but it's one of the better alternatives I've found so far. – Winterflags Aug 11 '17 at 9:58
1

I built SnipSave because I couldn't find a solution that suited my needs exactly. Adding/editing snippets is quick and intuitive, and the search is fast and searches the title, tags, and code itself of each snippet.

https://snipsave.com

1

I personally use 3cols as it's the only site that isn't slow like gists, offers enough categorisation options and stores all your snippets in the cloud for free. The only thing it charges for is sharing boards and that only costs $1.69 per month

New contributor
Langynom is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

I'm sure, someone else has the same question. After trying a few online Apps, I stumbled upon Evernote and feel, this is the best so far.

Pros

  • The interface is very simple.
  • It also has a Desktop Client. So you can use this on your PC and also via web too. The syncing is pretty fast.
  • Organize the snippets by Stacks & Subfolders.
  • Option to create MS Word like documents with styling and images.
  • If you have a bunch of text files in local drive, it's easy to add them all in one go.
  • Export all the snippets as HTMLs.

Cons:

  • When uploading text files from your local drive, the title of the snippet is not the name of the text file. You need to rename it.
  • If you have maintained a folder structure in Evernote and then export as HTMLs. The folder structure is not maintained in the downloaded files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.