[dokuwiki] Re: code blocks aren't parsed? How can I use italics...?

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 14 May 2006 13:17:16 +0100

Jo Rhett wrote:


Um, clue me in. What is different here?

'' is dokuwiki syntax for monospace font.

as has been pointed out <code> is for source code - within source code many odd character sequences have meaning (e.g. // is a comment in many languages) so allowing dokuwiki syntax within a code block is not feasible.

If in your wiki you have a large amount of content you wish to be in monospace font with dokuwiki formatting (e.g. italic, bold, underline, links, etc) then take a look at the div span shorthand plugin (http://wiki.splitbrain.org/plugin:div_span_shorthand)

It allows you to create an html block using a class that can be styled. You'll end up with an extra entry in your stylesheet for whatever class you choose.

.myclass { white-space: pre; }

The only thing you'll need to watch is that dokuwiki uses its only blocks for sections. This means you can't use dokuwiki headers within your blocks not without creating invalid xhtml.

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: