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

  • From: TNHarris <telliamed@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 19 Jun 2012 20:24:26 -0400

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.

(I couldn't get mails from whoopdedo.org to go to the list, so I've sent
this message three times and I'm afraid they'll all show up at once. I'm
sorry if I end up spamming the list.)

-----
-- tom telliamed@xxxxxxxxxxxxx

-- 
http://www.fastmail.fm - A fast, anti-spam email service.

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

Other related posts: