|
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/doyce/public_html/fictiwiki/pmwiki.php(988) : eval()'d code on line 1 Site.Side Bar (edit)pmwiki.org |
Pm Wiki continues to use Wiki Styles as a mechanism for styling text with color and other attributes. However, Pm Wiki 2.0 introduces the ability to control the styling further and to even place styles on blocks. The basics of Wiki Styles are the same as before--essentially a style is specified within a pair of %-signs and styles the text that follows, as in:
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
Shortcuts can be combined with other styles, including other shortcuts:
So far, this is all basically the same as what was available in Pm Wiki 1.0. Pm Wiki 2.0 includes the capability to style blocks, by using the
This means it's now possible to do right-aligned and centered text:
In fact, Pm Wiki predefines
Authors can define their own custom styles:
Styles can be applied to almost any kind of block:
In particular, this means that outlines are now possible using the predefined
Wiki Styles can be combined with CSS stylesheets to do this automatically -- see Cookbook:Outline Lists. What about marking up an entire block of pre-formatted text? For instance, say I have the following : ip access-list extended example-acl remark ** This is an example acl ** deny ip any host 10.0.0.1 permit ip any any I'd like to mark the above in a green box with a border. I know I need to use %block bgcolor=#dfd border='1px solid black' padding=5px for the box, but how do I apply it to the entire block? If I place \\ at the end of each line, I lose the indent at the beginning of the line... Use %block bgcolor=#dfd border='1px solid black' padding=5px% [= ip access-list extended example-acl remark ** This is an example acl ** deny ip any host 10.0.0.1 permit ip any any =] This results in ip access-list extended example-acl remark ** This is an example acl ** deny ip any host 10.0.0.1 permit ip any any Awesome, thanks! I think that's the only combination I didn't try! Using the above example is there anyway to avoid it from making long paragraphs going off the side of the page (width wise) when it is not contained in a visable and defined box, such that I can have a long piece of text in one colour and can make amendments in another? (without it making the webpage really wide and losing easy access to edit, recent history etc) Also I am using custom styles defined in my config.php. There is an example that uses this above but because it is using a markup box it seemes to stop it from scrolling off page. without it it does the same thing i'm experiancing. I've also noticed it seems to stop url turning into links as well. Please help! Change a style class of a Wiki Link? (or other element)Is there anyway to define a style that overwrites the default class value given to a wiki link? Examples of style properties I would like to apply;
a.linklevel1 {background-color:#003E49; color:black;
width:144px; margin:0px;
font-weight:bold; font-size:10pt; font-family: arial;}
a.linklevel1:hover {text-decoration:none; color:black; background:orange; cursor:hand;}
a.linklevel1:link {text-decoration:none; color:white;}
a.linklevel1:visited {text-decoration:none; color:white;}
I guess a usage like, %class=a.linklevel1%[[TheFunkyWikiLink]] << WikiStyleColors? | PmWiki.Documentation Index | Directives >> |
