[pmwiki-users] pmwiki-2.2.0-beta41 released (leading spaces update)

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Wed Mar 28 11:22:53 CDT 2007


> Tabs are considered to be a single whitespace character here.
> But it's okay to give tabs their own markup rule:
>
>    # lines beginning with tabs are always preformatted text
>    Markup('^tab', '<^ ', '^\t', '<:pre,1>$0');

I think this makes sense.

> Lots of browsers have difficulty entering tabs into textareas, which is 
> why I haven't relied on this for anything I do.

You're probably right that I'm one of the few that actually uses TABs.
(And they are difficult to use with a browser)

>> Or possibly a directive for preformatted text in general, i.e. (:pre:),
>> that you can give different arguments to?
>
> This might also be possible.  But notice that the (:wspre:) option
> I discussed above already provides some of this capability:
>
>    (:wspre:)
>       this is preformatted text
>    (:nowspre:)
>
> I don't think we need two separate directives for this -- so perhaps 
> "wspre" is just "pre" and it allows a variety of arguments that can 
> determine how preformatted text is identified/rendered for the page (at 
> least until the next (:pre:) directive).

Could work. Choosing syntax is tricky.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list