My boilerplate set up for creating new plugins which add a widget.
PHP JavaScript
Permalink
Failed to load latest commit information.
css
js
languages
views
plugin.php
readme.txt

readme.txt

=== My Plugin ===
Contributors: GaryJ
Donate link: http://code.garyjones.co.uk/donate/
Tags: widget, plugin
Requires at least: 3.3.0
Tested up to: 3.3.0
Stable tag: 1.0.0

Here is a short description of the plugin.  This should be no more than 150 characters.  No markup here.

== Description ==

This is the long description.  No limit, and you can use Markdown (as well as in the following sections).

For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.

== Installation ==

1. Upload the plugin folder to the to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Navigate to Appearance > Widgets
1. Drag and drop the widget onto a sidebar
1. Configure settings, and save

== Frequently Asked Questions ==

= Something isn't working correctly. What should I do? =

Make sure you're on the latest version of WordPress and the plugin, then let me know, with as much detail as possible, what the problem is.

== Screenshots ==

1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the directory of the stable readme.txt, so in this case, `/tags/4.3/screenshot-1.png`
2. This is the second screen shot

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== Another Section ==

Here's a link to [WordPress](http://wordpress.org/ "Your favourite software") and one to [Markdown's Syntax Documentation][markdown syntax].
Titles are optional, naturally.

[markdown syntax]: http://daringfireball.net/projects/markdown/syntax
            "Markdown is what the parser uses to process much of the readme file"

Markdown uses email style notation for blockquotes and I've been told:
> Asterisks for *emphasis*. Double it up  for **strong**.

`<?php code(); // goes in backticks ?>`