Format+ plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" unknown
  • 2011-05-25 "Rincewind" unknown
  • 2010-11-07 "Anteater" yes

plugin Adds all XHTML styles not already in DokuWiki

Last updated on
2010-10-31
Provides
Syntax

Similar to blockquote, styler

Tagged with formatting, quotes, style, typography

As of 2010-20-31, this plugin is not compatible with “Lemming” or earlier versions of DokuWiki.

This plugin provides the additional XHTML formatting styles as wiki markup.

Home Page

Usage

A drop-down menu containing shortcuts for all the formatting styles is added to the edit toolbar.

The inline formatting syntax is as follows:

Style Syntax XHTML Tag
Variable ??..?? VAR
Definition @@..@@ DFN
Citation &&..&& CITE
Keyboard ``..`` KBD
Sample code $$..$$ SAMP
Superscript /^..^/ SUP
Subscript /,..,/ SUB
Insert /+..+/ INS CLASS=simple
Delete /-..-/ DEL CLASS=simple
Inverse /!..!/ EM CLASS=inverse
Small-Caps !!..!! STRONG CLASS=smallcaps
Quote "".."" Q

There are three block formats:

Style Syntax XHTML Tag
Block Insert <ins title =cite @date></ins> INS CLASS=block
Block Delete <del title =cite @date></del> DEL CLASS=block
Block Quote <quote cite></quote> BLOCKQUOTE CLASS=citation

The block insert and delete styles will also wrap the text in a DIV block with the class name inserted or deleted. XHTML requires this to determine whether the tag is being used inline or as a block.

The block styles, as well as the inline quote style, can have attributes. All attributes are optional. For inline quotes, the cite attribute can be specified like this: ""=cite|..""

The included stylesheet is intended for browsers that fully support CSS2. This does not include Microsoft Internet Explorer, however. The plugin outputs a JavaScript function that uses DHTML to compensate.

Configuration

The plugin allows you to disable individual styles. In the configuration manager, select the formatting styles that you do not want to use. If the option classic_del is selected, then DokuWiki's default block delete will be used when there are no attributes, but the syntax with attributes will be handled by the plugin.

The editor buttons are added in a sub-menu of the toolbar. If the toplevel option is set, then buttons are shown in the main toolbar.

License

This plugin is licensed under the terms of the GNU General Public License version 2.

Bugs

Block quote seems to not obey paragraph formatting.

— bob, March 20, 2010

plugin/formatplus.txt · Last modified: 2011/03/20 18:22 by 212.54.219.225
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate