[Concept] Section formatting

81 views
Skip to first unread message

Mat

unread,
Dec 27, 2015, 10:24:31 AM12/27/15
to TiddlyWiki
It was brought up elsewhere, the lack for simple line breaks in TW5. This is a big frustration of mine and probably an "oddity" for anyone looking at TW. I was reminded of a concept I've thought of;

The idea is a single command, perhaps a markup tag (ie. in the text) that sets the format for either the tiddler or, more interestingly, for the paragraph. For example, in edit;

<lbr>
Ini
mini
miny
mo


...would display in viewmode as a four line paragrahp (instead of the current one line).

Note the empty line at bottom working as an end marker to the <lbr> tag.

And this

*Ini
mini
miny
mo


...would work make all items into bullet points, i.e giving a normal bullet list. Perhaps that initial bullet should be on a separate line.

Etc for other formatters. I guess some work is needed to decide on how to treat. sub-bullets or sub-numbers. One could also imagine a single such formatter tag in the beginning of the tiddler, i.e with an immediately following empty line, would indicate to format the whole content.

<:-)

David Gifford

unread,
Dec 27, 2015, 9:09:02 PM12/27/15
to TiddlyWiki
Doing

""""
Eeny
Meeny
Miny
Mo
""""

works for me

Mat

unread,
Dec 27, 2015, 9:48:25 PM12/27/15
to tiddl...@googlegroups.com
Triple quotes (because I assume you mean triple, not quadruple) to get line breaks - now that was news to me! I can't find info on it on tiddlywiki.com tho.

...and actually, I just did a quick test; you can even omit the closing bit if all of it (i.e rest of tiddler) is to be a list, i.e it is enough with:

"""
Eeny
Meeny
Miny
Mo


The syntax(?) may not be a general for other formatting but for the special case of "single line breaks" it is definitely rather close to my outlined concept,. Thanks David!

BTW, is there any simple-to-understand thought for the chosen notation for this particular bit? (Perhaps "It's using quotes to emphasize it's quoting the text exactly"...?)

<:-)

Tobias Beer

unread,
Dec 28, 2015, 1:17:08 AM12/28/15
to TiddlyWiki
Hi Mat & David,

Thanks for the """ reminder.
 
...and actually, I just did a quick test; you can even omit the closing bit if all of it (i.e rest of tiddler) is to be a list, i.e it is enough with:

I'd rather not recommend this as a "general technique".
When you transclude that tiddler at some other place you may well find yourself facing unexpected results.

Best wishes,

Tobias.

Evolena

unread,
Dec 28, 2015, 2:29:09 AM12/28/15
to TiddlyWiki
Le lundi 28 décembre 2015 03:48:25 UTC+1, Mat a écrit :
Triple quotes (because I assume you mean triple, not quadruple) to get line breaks - now that was news to me! I can't find info on it on tiddlywiki.com tho.
Reply all
Reply to author
Forward
0 new messages