Snippet Guidelines

Before you submit your snippet, read these guidelines to give yourself an idea of the convetions we try to keep consistent throughout the site.

General

When writing your snippet, please provide some explenation of the code and what it does. It doesn't have to be long, but it should give users an idea of how to implement the code in their own projects.

Code Highlighting

When writing your snippets please use the Preformatted option (from the format drop down) for blocks of code. This will then be turned into proper code highlighting before your snippet is published. When using the preformatting your code will look like this:

public function SomeCode(){
return $Foobar
}

It's a good idea to write your code in a text editor and then paste it onto the preformatted box of the WYSYWIG editor rather than trying to format it in the editor.

Headings

Use H2 tags for your top level headings and H3 for your subheadings.

Bolding

We use bolding for any word or phrase within an explenation that is sytax significant, for example $Variable or SomeFunction().

Spell Checker

Please use the spell checker in the toolbar before submitting your snippet.