2009/3/1 The Editor <[email protected]>:
>
> On Sat, Feb 28, 2009 at 9:15 PM, Hans <[email protected]> wrote:
>>
>> What i would really like to see is  a div markup which is short,
>> does not need to be necessarily nestable,
>> but does not need explicit closing either,
>> so a following div markup will close the preceeding one.
>> And which takes a parameter as css class name.
>
> I personally prefer to keep this out of the core--in the interest of
> keeping down arcane looking markups. Most of what I've steered toward
> in BoltWire are either very simple, intuitive markups, or html-like
> markups, to ease the learning curve.  However it could be added as a
> plugin easily enough...  Perhaps it could be modeled on the BOX
> markup, which converts <box></box> to <div class=box></div>.
>
> I should note however that getting things to close automatically, is
> not particularly easy...  This is one reason BoltWire has closing tags
> for forms, tables, divs, etc.
>
> One of the things I did in this last release was to generalize several
> of the various styles markups into one. I think, with a line or two
> more code, we could get colors and alignment tags to run through the
> same BOLTstyles function. On the other hand, now that I think about
> it, I see we will have a nesting problem when there is a custom span
> or paragraph in a custom div... Guess I need to split up the rules
> after all... For the next release...

To me it seems odds that the styles markup is applied to 'div' as well
as to 'color'
 'font' 'p' 'span' and 'box' And that you made <box> into the special hardcoded
case it is. So that one markup covers  a lot of different cases.

I suppose <box> feels intuitive enough for you: a div of class 'box'.
Following that logic <clip> would be  a div of class 'clip'.
<red> a div of class red. This works if class .red is set as {color:red;},
but it does not mean intuitively the same as <span style="color:red">

I mean we need to distinguish here a bit to what a style is applied.
A general div markup would always apply to a div block.
On the other hand a general span markup would apply to span tags.
I think it would be equally useful to have a short version for
<span class="myclass">....</span> (a bit like PmWiki's %
somestyle%....%% markup, but it can be  a lot less sophisticated).
So to keep a distinction between block and inline styling.

One extra thing to consider: It is possible and very useful to name
not just one
class, but several in a tag. Justmake sure al the names are put into the
class="..." and not lost because of spaces. I noticed BW fails on this.
Can't tell right now if it always fails delivering multiple class
names, or just in
some circumstances.

Cheers,
~Hans

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to