Hi guys, regarding the css in slice values, here's what I think:
* if css striping is added to slice values, it's consistent to add it to slice names (which would cause additional growth of slicesRE) * "simple" striping of css would be "stripe all "<latin letters or '-'>:<latin letters or numbers>;" thing" which is quite general and would probably cut some other things * it's quite uncommon to create slices where one need to have a css value, but this can appear in CSS reference like this: |Example|font-size:20px;| * it's rather rare situation when one needs to apply styles to slice names/values, but can be desired as well My conclusion is (due to the idea of core simplicity and the conflicting ideas mentioned above) not to stripe css. Instead, what I would think of, is a table-farmatter-modifying plugin. This is a bit offtopic, but let me draw a picture here. No secret, TW table formatter is somewhat rather limited: one can't add any attribute to a cell (or row or column). But formatter can be extended like this: | cells | withoug | attributes | | cells | with | attributes | class="myClass" id="myId" style="font-size:20px" | | attrubute1="value 1" attrubute2="value 2" |attr or like this: | cells | withoug | attributes | | cells | with | attributes | | class="myClass" id="myId" style="font-size:20px" | | attrubute1="value 1" attrubute2="value 2" |attr so that the rows with the "attr" ending cause adding attributes to corresponding cells. These two approaches have a drawback, thought, as without the plugin tables will be displayed in a wrong way and also this have poor compability with things like TWtid plugin [1] (former TableEditor and TWted). Another approach that would have a better compability is | cells | withoug | attributes | | cells | with | attributes | /%tableAttr 2| class="myClass" id="myId" style="font-size:20px" | | attrubute1="value 1" attrubute2="value 2" | rowAttribute="attrValue" %/ Here "2" is the number of the row to apply the attributes to. (for colspans, some other thing should be invented) So, that's the root I'd propose to look into. [1] https://groups.google.com/forum/?fromgroups=#!searchin/tiddlywiki/twtid/tiddlywiki/0FT6iBneYOk/2nozw_XRYNoJ воскресенье, 17 февраля 2013 г., 22:09:14 UTC+4 пользователь PMario написал: > > did you try: > > |key| value with spaces | > > wich imo is a valid slice definition. > > -m > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
