snippy-help

Created by ceej. Last edited by ceej Fri, 05 May 2006 13:08:58 PDT. Viewed 15539 times. atom feed

HTML tags

HTML works. You cannot add script or embed tags, but all other html tags are allowed. This means you can break pages if you're not careful. With great power comes great responsibility.

Markup

Snippy supports a number of other markup conveniences, some inspired by SnipSnap and some inspired by Markdown. Here are the most common:

__bold__
~~italic~~
1 first-level heading
1.1 second-level heading
1.1.1 third-level heading
{code-start}{code-end} PRE block
{table-start}{table-end} begin/end table block; each line is a separate table row; within a row cells are demarcated with |

To escape any special character, preface it with a backslash:

Wiki markup

[[snip name]]
[[snip name | anchor text]]
[[!include-this-snip]]

More markup is described on the Snippy features page.

Macros

Snippy has a number of macros to do more interesting processing:

macro use
{calendar:month=mm|year=yyyy} draw a calendar for the specified month
{children:depth} list children of the current snip to the specified depth
{image:img|alt|link} build an image tag
{image:img=|link=|alt=}
{index} generate the snip index
{link:anchor|uri} link to the given url, with a little arrow indicating off-site-ness
{logins} list recent visitors
{recent-changes:count=#} list recently-edited snips
{snip-count} emit snip count
{snips-by-user:user} list snips by the specified user
{user-count} emit user count
{list-of-users} emit a list of all registered users
{version} emit the version number of this Snippy installation
{weblog:#}
{weblog:#|user}
{weblog:#|user|parent}
{weblog:count=#|parent=parent|user=user} emit blog entries meeting the specification
Shane : Mon, 27 Jan 2003 09:43:54 PST permalink
Sorry if I missed it, but what is the code for making a URL alias (wrong term, I'm sure) show, rather than the URL. For instance, rather than "http:/blahblahblah.com/" displaying, "blah" would be a clickable link for it.
ceej : Mon, 27 Jan 2003 11:57:59 PST permalink
Use the link macro.

Register or log in to post a comment.