[Pmwiki-users] %class=something% (was Re: Extending ...)

John Feezell JohnFeezell
Tue Mar 2 00:04:21 CST 2004


On Mon, 1 Mar 2004 19:06:44 -0700, Patrick R. Michaud <pmichaud at pobox.com> 
wrote:

> On Tue, Mar 02, 2004 at 12:48:21PM +1100, Nathan Jones wrote:
>> Pm wrote:
>>
>> True, but the beauty of having a markup specifically for assigning
>> classes is that you don't have to define a markup every time you add a
>> class. Have you seen Richard's post (Subject: Span and Div) suggesting
>> [[div]]?
>
> Sure, I even proposed it myself in an earlier post, and for some reason
> I'm not completely comfortable with that approach.  I'd like to have a
> [[div]] markup that is less obtrusive.  But I can go ahead and implement
> [[div]] if there's sufficient demand for it (send me "yes" or "no" votes
> via email).
>
>> >   $InlineReplacements['/^=note (.*)$/'] = "<div 
>> class='note'>$1</div>";
>>
>> I guess it would be possible to expand this to recognise =class-foo:
>>
>> $InlineReplacements['/^=class-([a-zA-Z]*) (.*)$/'] = "<div
>> class='$1'>$2</div>";
>
> If doing this I'd recommend
>
>     $InlineReplacements['/^=class:([a-zA-Z][-\\w]) (.*)$/'] =
>       "<div class='$1'>$2</div>";
>
> so that digits, hyphens, and underscores are allowed in class names.
> But I'd still like to have a wikistyle method for block styles.
>
> Pm

Here are some alternative ideas for markup.

..[]
Some lines of text
more lines of text
..[]
second set of lines of text
second more lines
[]..
[]..

.[].
Some lines of text
more lines of text
.[].
second set of lines of text
second more lines
.[/].
.[/].

..div
Some lines of text
more lines of text
..div
second set of lines of text
second more lines
div..
div..

..div
Some lines of text
more lines of text
..div
second set of lines of text
second more lines
/.div
/.div

".div
Some lines of text
more lines of text
".div
second set of lines of text
second more lines
div."
div."

/JF







-- 
  



More information about the pmwiki-users mailing list