As noted, I think a key question for this discussion is what the purpose is:
To (merely) control the styling of text snips, one can use common HTML. So, for a TW solution to be *meaningful*, it has to improve something. Using @@.foo ...@@ achieves the identical styling outcome, so no improvement in *that *regard. And *semantically* the difference between @@.foo ...@@ and <div class="foo">...</div> is very small - it takes almost as much typing and it is almost as visually distracting when reading the code, so almost no benefit in that regard either. But, in contrast to pragma rules, both alternatives have the "plus" that they manipulate the "very current" text part that one is authoring. @PMario/Tony , I really like your idea to apply style with X.classname My text here\n ...and, even nicer, directly: .classname My text here\n ...because it *significantly* simplifies applying styes for the author, and readibility is superior to html or @@ (at least if the classnames are not confused with the text itself). This jives perfectly with the styling aspects of my OP (tho not any "programmatic functionality" like pipe chars). And if the class is undefined then, just like usual with css, the result is "no effect". Are you saying your approach works or did you hit some problem? Have you considered syntax for styling bigger text portions, i.e that contains multiple \n ? I.e how to specify an end marker? @TiddlyTweeter I am not the least fond of the pragma route for the reason I hinted in this post, i.e that it breaks the authoring workflow. Imagine if you were forced to add a pragma every time you wanted bullet lists? It is distracting and bad UX, IMO. Pragmas definitely have their place, for instance for macros where the pragma is part of what actually constitutes the thing. Another case is a pragma that implies "this tiddler should have this special functionality" but my OP here is for something mundane and comparable to * for bullet lists - it's just that the user himself can make up what the effect should be. <:-) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/3d4626e4-ba0f-43a8-a267-8bfee6c3d8e5o%40googlegroups.com.
