[pmwiki-users] block preformat, spaceless?
Tom Holroyd
tomh at kurage.nimh.nih.gov
Fri Mar 18 17:32:55 CST 2005
Would it be possible to have an option where markup that starts with a
space is put in a <pre> block, but with the leading space stripped?
Perhaps this could be the default behavior? Would anybody object to that?
I know I can say
[=
stuff
=]
but
stuff
is a lot easier to type. Having the space(s) go away automatically
would be nice. I had a look at
Markup('^ ','block','/^(\\s)/','<:pre,1>');
and it seems like it'd be possible to add a function that strips
leading spaces in there, somehow.
(I suppose it might be going too far to ask that leading spaces also
get treated like [=? And then stripped? That could certainly be a
cookbook recipe; just add the correct Markup commands to config.php.)
--
Dr. Tom Holroyd
"A man of genius makes no mistakes. His errors are volitional and
are the portals of discovery." -- James Joyce
More information about the pmwiki-users
mailing list