PmWiki

Wiki Style Examples

PmWiki.WikiStyleExamples History

Hide minor edits - Show changes to markup

July 14, 2015, at 09:21 AM by Oseng - QoIr0g1R
Changed line 1 from:

I do not leave a leave a response, <a href="http://zgkvcxamt.com">hoeevwr</a> I looked at a fewof the comments here รับจ้างพิมพ์งาน |บริการซ่อมคอมนอกสถานที่บริการทั้งกรุงเทพ โคราช ชัยภูมิ.I do have a few questions for you if you tend not to mind.Could it be simply me or does it look like like some of the responses appear as if they are left by brain dead visitors? And, if you are writing on additional online sites, I'd like to follow you. Could you post a list of all of all your social networking pages like your linkedin profile, Facebook page or twitter feed?

to:

Do you mind if I quote a couple of your posts as long asI prviode credit and sources back to your weblog?My website is in the very same niche as yours andmy visitors would truly benefit from a lot of the information you presenthere. Please let me know if this ok with you. Regards! http://uslvuch.com [url=http://wuxtvqabdw.com]wuxtvqabdw[/url] [link=http://yvsieta.com]yvsieta[/link]

July 11, 2015, at 07:18 PM by Mehdi - PP7rQDz5odyo
Changed line 1 from:

I rellay needed to find this info, thank God! http://hccomd.com [url=http://lhrqlkpnkd.com]lhrqlkpnkd[/url] [link=http://pjbgdu.com]pjbgdu[/link]

to:

I do not leave a leave a response, <a href="http://zgkvcxamt.com">hoeevwr</a> I looked at a fewof the comments here รับจ้างพิมพ์งาน |บริการซ่อมคอมนอกสถานที่บริการทั้งกรุงเทพ โคราช ชัยภูมิ.I do have a few questions for you if you tend not to mind.Could it be simply me or does it look like like some of the responses appear as if they are left by brain dead visitors? And, if you are writing on additional online sites, I'd like to follow you. Could you post a list of all of all your social networking pages like your linkedin profile, Facebook page or twitter feed?

July 10, 2015, at 01:57 AM by Janaya - AQNMulVk
Changed line 1 from:

I told my kids we'd play after I found what I <a href="http://qyknoatmadt.com">nedeed.</a> Damnit.

to:

I rellay needed to find this info, thank God! http://hccomd.com [url=http://lhrqlkpnkd.com]lhrqlkpnkd[/url] [link=http://pjbgdu.com]pjbgdu[/link]

July 08, 2015, at 03:56 AM by Kelli - 96vw5MgHAO0K
Changed line 1 from:

Call me wind because I am abtueoslly blown away.

to:

I told my kids we'd play after I found what I <a href="http://qyknoatmadt.com">nedeed.</a> Damnit.

July 07, 2015, at 12:04 AM by Shaki - KyDuGuFdJ
Changed lines 1-150 from:

(:Summary: Styling text for colour and other attributes:) See also Wiki Styles Plus and Wiki style colors.

PmWiki uses WikiStyles for styling text with color and other attributes. PmWiki 2.0 introduced the ability to control the styling further and to even place styles on blocks.

A style is specified within a pair of %-signs and styles the text that follows, as in:

(:markup class=horiz:) This text is red, blue, and normal (black). (:markupend:)

There are a wide number of available style properties, borrowed primarily from HTML and CSS. In addition, an author can define a style "shortcut" by using the define= property. For example, to define a style of %red%, one can use:

(:markup class=horiz:) Here is some red text created using a style shortcut. (:markupend:)

Shortcuts can be combined with other styles, including other shortcuts:

(:markup class=horiz:)

This text is red, red on a grey background, and red on a yellow background. (:markupend:)

So far, this is all basically the same as what was available in PmWiki 1.0. PmWiki 2.0 includes the capability to style blocks, by using the apply= style property. Specifying apply=block in a WikiStyle will cause that style to be applied to the entire block, instead of just the text that follows:

(:markup:) This entire block has a yellow background, even though the WikiStyle appears in the middle of the line. Other inline (non-block) WikiStyles can appear in the middle of the line, as before. (:markupend:)

This means it's now possible to do right-aligned and centered text:

(:markup:) The text of this paragraph is right-aligned.

The text of this paragraph is centered. (:markupend:)

In fact, PmWiki predefines %right% and %center% style shortcuts so that you can do this more simply:

(:markup class=horiz:) This is right-aligned.

This is centered. (:markupend:)

Authors can define their own custom styles:

(:markup:)

Any text that is on a light purple background is a comment from "Pm".

Here's some text from Goofy.

bla bla by rediguana!

Hello, I am upset disheartened happy to meet you. (:markupend:)

Styles can be applied to almost any kind of block:

(:markup class=horiz:)

  • Here is a list item
  • Here's another list item
  • Here's more of a list
  1. A new list

(:markupend:)

In particular, this means that outlines are now possible using the predefined %ROMAN%, %roman%, %ALPHA%, and %alpha% list-block styles. The style has to be specified on the first item in the list (and we may develop an alternate syntax for this sort of ordered list):

(:markup class=horiz:)

  1. Top level
    1. second-level
    2. second-level
    3. second-level
      1. third-level
      2. third-level
    4. second-level
      1. third-level
        1. fourth-level
          1. fifth-level
          2. fifth-level
        2. fourth-level
  2. top-level
  3. top-level

(:markupend:)

Wiki styles can be combined with CSS stylesheets to do this automatically -- see Cookbook:OutlineLists.

Q & A

How do I get a block of preformatted text?

Use something similar to this (assuming you want markup within the block to be interpreted as wiki markup and URIs to be recognized).

(:markup:)

This block of text is preformatted, see all the white-space and linebreaks are preserved. Links such as wiki styles etc still work.

(:markupend:)

How do I get a block of preformatted text with a colored background and a border?

Use something similar to this (note that wiki markup etc is not recognized within the block):

(:markup:)

ip access-list extended example-acl
remark ** This is an example acl **
deny ip any host 10.0.0.1
permit ip any any

(:markupend:)

How do I get a block of text (including wiki markup) with a colored background and a border?

(:markup class=horiz:)

Hello world

  • bullet
  1. number

(:markupend:)

How do I get a block of text (including wiki markup) with a border that is indented on the left and does NOT extend all the way to right? I'm not interested in having later text to the right as would occur with lfloat...

You can use the indent lframe class and follow the block by a forced line break [[<<]].

(:markup class=horiz:) Before indention...

Hello world

  • bullet
  1. number


... after indention! (:markupend:)

to:

Call me wind because I am abtueoslly blown away.

Green Marinee theme adapted by David Gilbert, powered by PmWiki