{% extends "base_user.html" %} {% load static from staticfiles %} {% block extra_scripts %} {% endblock %} {% block title %}Add a snippet{% endblock %} {% block content_header %}Add a snippet{% endblock %} {% block content %}

Please remember that this site is not a pastebin or debugging tool; it is intended for finished, working pieces of code. If you need someplace to temporarily post some code while others help you debug it, please use the pastebin at dpaste.org.

{% if form.errors %}

Please correct the errors below:

{% endif %}
{% csrf_token %}
{{ form.title }}
{{ form.language }}{% if form.language.errors %}  {{ form.language.errors|join:", " }}{% endif %}
{{ form.version }}{% if form.version.errors %}  {{ form.version.errors|join:", " }}{% endif %}
{{ form.tags }}
Use commas between tag names, and hyphens for multiple words, like "tag1, tag2, tag3-with-long-name"
{{ form.code }}
{{ form.description }}
You can use Markdown syntax here (see the sidebar), but raw HTML will be removed.
{% endblock %} {% block sidebar %}

All fields are required; tags should be separated with spaces, and you can use Markdown in the description for your snippet, but raw HTML will be removed.

Remember: by posting a snippet, you agree to let anyone make use of the code.

Markdown quick reference:

Bold and italic text:
**bold** and *italic* text
Links:
[link text](link URL)
Code:
`code`
Code block:
Indent each line four spaces
Blockquote:
Start each line with >
Unordered lists:
Start each item with *
Ordered lists:
Start each item with a number and a period (e.g., 1. for the first item, 2. for the second, and so on)
{% endblock %}