[pmwiki-users] New div syntax

Patrick R. Michaud pmichaud at pobox.com
Thu Aug 31 07:58:38 CDT 2006


On Thu, Aug 31, 2006 at 01:08:26PM +0100, Marc Cooper wrote:
> Hi,
> 
> When using the new div syntax, (:div1:), what is the intended method of 
> applying attributes?
> 
> These work:
> 
>   (:div1 style='float:left; width:400px'; :)
>   (:div1:) %apply=div float=left width=400px%
> 
> but somehow I expect to be able to write:
> 
>   (:div1 float=left width=400px :)

Yes, I know.  The (:div:), (:div1:), and (:table:) tags really
expect to have HTML attributes following them, as opposed to
wikistyles.  The way to get the wikistyle is to use your
second example, although it can be made slightly shorter with:

    (:div1:) %float=left width=400px div%

I'm still thinking of adding a >>>...<<< shortcut, which would
allow:

    >>>float=left width=400px<<<

Pm




More information about the pmwiki-users mailing list