[dokuwiki] Re: Is there any way to turn off 'indent by two spaces' being a code block?

  • From: Chris Green <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 20 Jun 2012 10:57:00 +0100

On Tue, Jun 19, 2012 at 08:24:26PM -0400, TNHarris wrote:
> On Tue, Jun 19, 2012, at 05:51 PM, Chris Green wrote:
> > I have just about managed what I want now by using a plugin to
> > create a
> > <div> block with a class that causes the stylesheet above to be used.
> >       Then, to prevent initial spaces from making DokuWiki changing
> >       the mode I use a nobreakspace as the first character of the line
> >       (this was a little more difficult than it might have been, I had
> >       to use xmodmap to change the keyboard layout to send a
> >       nobreakspace).
> >
> 
> In the div plugin, override the accepts method to return false when the
> mode is 'preformatted'. You may also want to ignore 'listblock' which
> also starts with two spaces.
> 
Thank you, I think that's the 'proper' way to do it.  No need for
nobreakspace any more.

-- 
Chris Green
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: