This is a simple prototype of an idea put forward by David Neary over coffee after the FOSSa conference in Grenoble. The idea is to provide a code snippet, review, rating and commenting system. This is not intended to be complete, it's just a quick prototype system, maybe it will go somewhere, maybe not. It is expected that a full version of this will not be built on Drupal, but will be custom built using appropriate technologies. However, as a proof of concept this does it's job.

Supported Features

Release 0.2

Release 0.1

  • Registered users can create code snippets
  • Snippets in many languages are supported
  • Syntax highlighting is done on the client to lesson the load on the server
  • Changes to the code snippets are versioned
  • Registered users can leave comments
  • Registered users can rate snippets
  • Average ratings are displayed, along with current user rating (if registered)

Adding a code snippet

  1. Log in
  2. Click "Create Content"
  3. Select "Code Snippet"
  4. Click "Input Format"
  5. Select "Code"
  6. Type your introductory text in the editor
  7. click the highlighter icon (far right of editor menu bar)
  8. Select the programming language for your code
  9. Click insert
  10. click save

Note, if you edit this document in the future a new revision will be saved.

Potential features

  • search
  • simplify the code editing process
  • per line commenting
  • RSS feeds of new snippets
  • RSS feeds of new snippets in a given taxonomy
  • RSS feed of new ratings of own snippets
  • RSS feed of new comments on snippets
  • Move comments to a "talk" page