[pmwiki-users] PmWiki/ConditionalMarkup

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 9 16:10:29 CST 2006


On Thu, Mar 09, 2006 at 02:58:01PM -0700, H. Fox wrote:
> > We can always do "-> %code% [@ ... @]" -- it double-applies
> > the wikistyle if %code% has "apply=block" in it.
> 
> I don't understand... Since the left margin is already there (in the
> %code& wikistyle definition), why would someone do "-> %code% [@ ...
> @]"?  Why not just do "code margin-left=70px[@ ... @]" instead?

Because I might want:

    ## Here's a numbered list item

    ---> %code% [@
    some indented stuff
    @]

    ## Another numbered list item

Also, as an author, I don't want to have to think about 
margin widths or pixels, I just want to be able to say 
"style this thing as a third-level indented code block" 
and be on my way.  I'd also like my code blocks to align 
with the other indented items without having to worry 
about what skin I'm using or what it might be setting
the default indent spacing to.

In short, I think it makes sense for something like 
%code% to identify things such as borders, background 
color, font, and perhaps a minimum indent level, but 
I don't think it should be solely responsible for
the indent level.  Part of me also thinks that

    %code% [@
    ...
    ...
    @]

shouldn't be indented.

One last item -- I'm not sure if something like %code%
should be defined for just the PmWiki group or
for the entire wiki.  Somehow I'm reluctant to
define it site-wide, but I think it'll be confusing
to authors and admins if it isn't ("why doesn't it
format the same in the Main group?").

> If I try replacing this working wikistyle definition (the one I'm
> proposing for the core)
> 
>     %define=code block padding:4px margin-left:30px%
> 
> with any of these
> 
>    %define=code pre padding:4px margin-left:30px%
>    %define=code apply=pre padding::4px margin-left:30px%
>    %define=code block apply=pre padding:4px margin-left:30px%

apply=pre might not be defined....now it is.

Pm




More information about the pmwiki-users mailing list