(:Summary: A list of some of the markup sequences available:) >>rframe font-size:smaller<< !! Table of contents * [[#Paragraphs|Paragraphs]] * [[#IndentedParagraphs|Indented Paragraphs ''(Quotes)'']] * [[#BulletedLists|Bulleted and Numbered Lists]] * [[#DefinitionLists|Definition Lists]] * [[#WhitespaceRules|Whitespace Rules]] * [[#HorizontalLine|Horizontal Line]] * [[#Emphasis|Emphasis]] * [[#References|References]] * [[#Headings|Headings]] * [[#EscapeSequence|Escape sequence]] * [[Special Characters | Special characters]] * [[#Tables | Tables]] >><< This page provides a more complete list of some of the markup sequences available in PmWiki. Note that it's easy to create and edit pages without using any of the markups below, but ''if'' you ever need them, they're here. To experiment with the rules, please edit the [[Main/Wiki Sandbox]]. ---- !! [[#Paragraphs]] Paragraphs To create paragraphs, simply enter text. Use a blank line to start a new paragraph. Words on two lines in a row will '''wrap and fill''' as needed (the normal XHTML behavior). To turn off the automatic filling, use the [@(:linebreaks:)@] directive above the paragraph. * Use [@\@] (single backslash) at the end of a line to join the current line to the next one. * Use [@\\@] (two backslashes) at the end of a line to force a line break. * Use [@\\\@] (three backslashes) at the end of a line to force 2 line breaks. * Use [@[[<<]]@] to force a line break that will clear floating elements. !! [[#IndentedParagraphs]] Indented Paragraphs ''(Quotes)'' Arrows ([@->@]) at the beginning of a paragraph can be used to produce an indented paragraph. More hyphens at the beginning ([@--->@]) produce larger indents. (:markup:) ->Four score and seven years ago our fathers placed upon this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal. (:markupend:) Inverted Arrows ([@-<@]) at the beginning of a paragraph can be used to produce a paragraph with a hanging indent. Adding hyphens at the beginning ([@---<@]) causes all the text to indent. (:markup:) -@]) and aligning subsequent lines under the first. An unindented line stops the block indentation. See [[Cookbook:Markup Tricks]] for an example. !! [[#BulletedLists]] Bulleted and Numbered Lists Bullet lists are made by placing asterisks at the beginning of the line. Numbered lists are made by placing number-signs (#) at the beginning of the line. More asterisks/number-signs increases the level of bullet: (:markup:) * First-level list item ** Second-level list item ### Order this #### And this (optional) ### Then this ** Another second-level item * A first-level item: cooking ## Prepare the experiment ### Unwrap the pop-tart ### Insert the pop-tart into the toaster ## Begin cooking the pop tart ## Stand back (:markupend:) (:markup:) # A list is terminated by the first line that is not a list. # Also terminate a list using the escape sequence [@[==]@] [==] # Continue a list item by lining up the text with leading whitespace. # Use a forced linebreak \\ to force a newline in your list item. (:markupend:) (:markup:) ## Text between list items can cause numbering to restart ## %item value=3% this can be dealt with (:markupend:) Also see: [[PmWiki:ListStyles]], [[Cookbook:WikiStylesPlus]]. !! [[#DefinitionLists]] Definition Lists >>rframe<< '''Powerful new%red%*%% feature'''\\ When you define terms using this markup\\ PmWiki will recognize them as [[PageTextVariables]]\\ that you can use on any page or [[PageList(s)]].\\ [-%red%* Added%% in PmWiki version %red%2.2.0%%-] >><< Definition lists are made by placing colons at the left margin (and between each term and definition): (:markup:) :term:definition of term (:markupend:) [[#WhitespaceRules]] !! Whitespace Rules Whitespace indentation in lists. Any line that begins with whitespace ''and aligns'' with a previous list item (whether bulleted, numbers or definitional) is considered to be "within" that list item. Text folds and wraps as normal, and the [@(:linebreaks:)@] directive is honored. (:markup:) # First-level item\\ Whitespace used to continue item on a new line # Another first-level item # Whitespace combined with a single # to create a new item one level deeper (:markupend:) Otherwise, lines that begin with whitespace are treated as ''preformatted text'', using a monospace font and not generating linebreaks except where explicitly indicated in the markup. Note to administrators: Starting with version 2.2.0-beta41, this feature can be modified using $EnableWSPre. (Another way to create preformatted text blocks is by using the [=[@...@]=] markup.) !! [[#HorizontalLine]] Horizontal Line Four or more dashes ([=----=]) at the beginning of a line produce a horizontal line. [[#Emphasis]] !! Emphasis and character formatting * Enclose text in doubled single-quotes ([=''text''=]), i.e., ''two apostrophes'', for emphasis (usually ''italics'') * Enclose text in tripled single-quotes ([='''text'''=]), i.e. ''three apostrophes'', for strong (usually '''bold''') * Enclose text in five single-quotes ([='''''text'''''=]), or triples within doubles (''five apostrophes''), for strong emphasis (usually '''''bold italics''''') * Enclose text in doubled at-signs ([=@@text@@=]) for @@monospace@@ text * Use [=[+large+]=] for [+large+] text, [=[++larger++]=] for [++larger++], [=[-small-]=] for [-small-] text, and [=[--smaller--]=] for [--smaller--]. * Emphasis can be used multiple times within a line, but cannot span across markup line boundaries (i.e., you can't put a paragraph break in the middle of bold text). * [='~italic~'=] and [='*bold*'=] are available if enabled in config.php Other styling (:markup:) '+big+', '-small-', '^super^', '_sub_', {+insert or underscore+}, {-delete or strikethrough or strikeout-} (:markupend:) * [@`WikiWord@] `WikiWord neutralisation See also [[Wiki Styles]] for advanced text formatting options. [[#References]] !! References * Use words and phrases in double brackets (e.g., [=[[text formatting rules]]=]) to create links to other pages on this wiki. * On some PmWiki installations, capitalized words joined together (e.g., [[WikiWord]]s) can also be used to make references to other pages without needing the double-brackets. * Precede [=URLs=] with "@@http:@@", "@@ftp:@@", "@@gopher:@@", "@@mailto:@@", or "@@news:@@" to create links automatically, as in http://www.pmichaud.com/toast. * [=URLs=] ending with @@.gif@@, @@.jpg@@, or @@.png@@ are displayed as images in the page * Links with arbitrary text can be created as either [=[[=]''target'' | ''text'']] or [=[[=]''text'' -> ''target''[=]]=]. ''Text'' can be an image URL, in which case the image becomes the link to the remote ''url'' or ''[[WikiWord]]''. * [[#Anchors]] Anchor targets within pages (#-links) can be created using @@[=[[#target]]=]@@. See [[Links]] for details. [[#Headings]] !!Headings Headings are made by placing an exclamation mark ('''!''') at the left margin. More exclamation marks increase the level of heading. For example, (:markup:) !! Level 2 Heading !!! Level 3 Heading !!!! Level 4 Heading !!!!! Level 5 Heading (:markupend:) Note that level 1 heading is already used as page title (at least in the PmWiki skin), so you should start with level 2 headings to create well formed, search engine optimized web pages. See [[Cookbook:Numbered Headers]] for numbered headings. [[#EscapeSequence]] !!Escape sequence Anything placed between [=[= and =]=] is not interpreted by PmWiki, but paragraphs are reformatted. This makes it possible to turn off special formatting interpretations and neutralise [=WikiWords=] that are not links (even easier is to use a tick ` in front, like [=`WikiWord=]). For preformatted text blocks, use the [=[@...@]=] markup. It does neither reformat paragraphs nor process wiki markup: (:markup:) [@ Code goes here like [[PmWiki.PmWiki]] '$CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]'; #just some code @] (:markupend:) The multiline @@[=[@...@]=]@@ is a block markup, and in order to change the styling of these preformatted text blocks, you need to apply a "block" WikiStyle. (:markup:)[=%block blue%[@ The font color of this text is blue @]=] It is also useful to use [@[= =]@] within other wiki structures, as this enables the inclusion of new lines in text values. The example below shows how to include a multi-line value in a hidden form field. ->[@(:input hidden message "[=Line1 Line2=]":)@] !! Comments [@ (:comment Some information:) @] can be very kind to subsequent authors, especially around complicated bits of markup. [[#SpecialCharacters]] !! Special Characters (:include SpecialCharacters:) [[#Tables]] !! Tables [[Tables]] are defined by enclosing cells with '||'. A cell with leading and trailing spaces is centered; a cell with leading spaces is right-aligned; all other cells are left-aligned. An empty cell will cause the previous cell to span multiple columns. (There is currently no mechanism for spanning multiple rows.) A line beginning with '||' specifies the table attributes for subsequent tables. A '!' as the first character in a cell provides emphasis that can be used to provide headings. (:markup:) ||border=1 width=50% ||!Table||!Heading||!Example|| ||!Left || Center || Right|| ||A ||! a B || C|| || || single || || || || multi span |||| (:markupend:) See [[Table Directives]] for advanced tables. !!!Can't find it here? See [[Markup Master Index]].