|
PmWiki / WikiStyles |
SearchWiki PmWiki.RecentChanges Edit Page Page Revisions |
%red% will cause the following text to be displayed as red until the end of the line or the next pair of percent signs. For example:
%red% This text is red and %blue% this text is blue %% but this text is normal.gives
color, bgcolor, or target specifications inside of a pair of percent signs will change the style of the following text to use those colors up to the end of a line or until the next pair of percent-signs. For example:
%color=red% This text is red and %color=blue% this text
is blue %% but this text is normal.
renders as
bgcolor attribute:
%color=white bgcolor=green% This text is white on green %color=green% and
this is green on white.
target attribute:
%target=_blank% Any links on this line like http://www.pmichaud.com
will open in a new window.
which gives
define attribute. For example, the statement
%define=hotpink color=#ff69b4%will cause the markup
%hotpink% to be a shortcut for %color=#ff69b4% (like this). One can specify multiple items in a definition, as in
%define=reverse color=white bgcolor=black%which allows
%reverse% to cause reverse video, and %reverse hotpink% to be the combination of both shortcuts.
It's often a good idea to put common style definitions into Group Headers so that they can be shared among multiple pages in a group. Or, the Wiki Administrator can predefine styles as a LocalCustomization -- see Wiki Styles Admin?.
<< Text Formatting Rules | PmWiki.Documentation Index | Inter Map >>