[Pmwiki-users] Re: %class=something% (was Re: Extending ...)
Patrick R. Michaud
pmichaud
Tue Mar 2 18:11:02 CST 2004
On Tue, Mar 02, 2004 at 12:45:00PM -0500, J. Perkins wrote:
> Patrick R. Michaud wrote:
> >Approach #1: A wikistyle appearing at the beginning of a line
> >applies to the entire line (block), generating a <div> as needed.
>
> I like this approach, if it is feasible. That is, a wikistyle that
> appears at the start of a line, and which is not ended within the line,
> becomes a <div>. Wikistyles that start and/or end within the line use a
> <span>.
Depends on what you mean by "is not ended within the line". Consider
%stylea% text text %styleb% text text %% more text.
Technically speaking, the %styleb% markup ends the %stylea% WikiStyle.
> How about allowing the "display" CSS selector? Then you could switch
> styles with %display:block% or %display:inline%.
I've been thinking of doing something along these lines--a wikistyle
acts on the block if it contains a display=block definition.
BTW, I should also make it clear that I prefer to keep the semantic
that all styles in %...% are terminated at the end of the current markup
line. If we want a div to span multiple markup lines, it would have
to be done with [=...=], trailing backslashes, or something like
[[div]]...[[divend]].
Pm
More information about the pmwiki-users
mailing list