Tony's Meaningful tip - Why must I add extra enter's in my text?, how can I get text formatted as pasted?

94 views
Skip to first unread message

TonyM

unread,
Nov 15, 2018, 7:58:21 PM11/15/18
to TiddlyWiki
Folks,

I am just thinking about posing the occasional "Tony's Meaningful tip". The Idea is to highlight items that are in my mind, meaningful to most users of tiddlywiki. These will be single items

Here is my first as an example.

Why must I add extra enter's in my text?, how can I get text formatted as pasted?

Simply wrapping text in tripple Quotes - """ text """, can help eg

"""
heading

   line 1
   Line 2
   line3

New section heading

New paragraph

"""
Wikification is somewhat disabled in the above, you can still make links [[to a tiddler]] even transclusions and bold etc...

If you just want what you typed or pasted not to loose all the line feeds this is helpful. If necessary you could work through it formating for WikiText and move the """ eg


;heading
:line 1
:Line 2
:line3

"""

New section heading

New paragraph

"""


Acknowledgements
Someone recently used this in a solution, I am not sure who pointed it out.

Please comment if this was of value or you have something to add.

Regards
Tony

Stobot

unread,
Nov 15, 2018, 8:22:49 PM11/15/18
to TiddlyWiki
Thanks Tony,

I've used Tiddlywiki for many years and didn't know about the triple quotes trick OR the semi-colon / colon thing - are there more like those?

TonyM

unread,
Nov 15, 2018, 9:03:14 PM11/15/18
to TiddlyWiki
Stobot,

Yes, they should all be documented under https://tiddlywiki.com/#WikiText but Tobias did a great job here http://tobibeer.github.io/tb5/#Markup

Regards
Tony

Mohammad

unread,
Nov 15, 2018, 11:27:01 PM11/15/18
to tiddl...@googlegroups.com
This is great Tony!

Keep going on and use a consistent topic title to be searchable later, or put a link somewhere in your public wiki for later reference!

For the first tip, I would like also to add the below reference from https://tiddlywiki.com/#Hard%20Linebreaks%20in%20WikiText


Cheers
Mohammad

TonyM

unread,
Nov 16, 2018, 4:51:33 AM11/16/18
to TiddlyWiki
Mohammad,

Yes, thanks for that, good point, however we should reference the main site not the prerelease which will change.

https://tiddlywiki.com/#Hard%20Linebreaks%20in%20WikiText

Please edit your reply, and I will delete this one.

I will follow your suggestions

Thanks again
Tony

PMario

unread,
Nov 16, 2018, 6:58:54 AM11/16/18
to TiddlyWiki
Hi,

Since 5.1.16 we have a new possibility to style tiddlers with data-tags. ... One of the examples is: Hard Linebreaks with CSS

It shouldn't be so strict as the 3 doublequotes. It should work with most text formatting wiki-rules. ... BUT there may be side effects if you transclude heavy modified templates and macros.

have fun!
mario
Reply all
Reply to author
Forward
0 new messages