# Snippet Library

The Snippet Library function of FusionForge is very interesting; it allows to collect all the type of information/knowledge which is not a complete piece of code and which is usually difficult to organize/share.

A typical example are sophisticated shell commands, javascript functions, perl one-liner, SQL expressions that perform special queries, an algorithm, etc.

## Inserting a new snippet

You can insert a new Snippet by clicking on the Submit a New Snippet link.

A form appears, where the following information can be inserted:

Title

  Insert the title of the snippet. This will be displayed in the list of the snippets.

Description

  Insert the description of the snippet.

Type

  Select the type of the snippet: function, full script, Howto, class, Readme.

License

  Select the license you want to use for your snippet.

Language

  Select the language of the snippet (if it is language dependent).

Category

  Classify your snippet in categories tree.

Version

  You should insert here the version of the snippet. For a new snippet, insert 1.0.

Code

  Paste here the code of the snippet.

## Browsing snippets

You can browse snippets by clicking the Browse link.

You can browse snippets by Language or by Category. The resulting table shows the list of all snippets of the Language/Category. You can click on the snippet number to view the detail of the snippet.

## Modifying a snippet

You cannot modify an existing snippet, but you can add a new version of the snippet by clicking on the Submit a new version link on the bottom part of the detail page of the snippet.

Adding a new version does not delete the old version, all previous versions will be available.