How to bold plain text

69 views
Skip to first unread message

Rika Sukenik

unread,
Nov 10, 2020, 5:46:24 PM11/10/20
to TiddlyWiki
I'm copying text over from a text editor and am trying to minimize formatting changes. Plain text seems to work well, but I don't see an option to bold text. Is it possible? If no, what is a good way to copy large amounts of text from a text editor? Thanks :)

TW Tones

unread,
Nov 10, 2020, 6:42:03 PM11/10/20
to TiddlyWiki
In the editor, select the text and Press the B button, alternatively surroundf with double single-quotes ''bold text''

Am I missing something?

Tones

Eric Shulman

unread,
Nov 10, 2020, 9:01:32 PM11/10/20
to TiddlyWiki
On Tuesday, November 10, 2020 at 2:46:24 PM UTC-8, Rika Sukenik wrote:
I'm copying text over from a text editor and am trying to minimize formatting changes. Plain text seems to work well, but I don't see an option to bold text. Is it possible? If no, what is a good way to copy large amounts of text from a text editor? Thanks :)

When you use type="text/plain", you can't add any TiddlyWiki formatting codes.  If you change to using type="text/vnd.tiddlywiki" or leave the type field blank, then the tiddler content can use TiddlyWiki formatting codes, such as "doubled single quotes" around text to make it appear bold.

However, using TiddlyWiki 5 formatting will also affect the use of newlines within the content, and your text will automatically "flow and wrap", rather than keeping blank lines as-is.  To retain the look and layout of "text/plain", you can enclose your text within some CSS, like this:
@@white-space:pre;font-family:monospace;border:1px solid #ccc;background:#eee;
... your content here ...
... including ''bold formatting'' as desired ...
@@

Note that, at a minimum, only the "white-space:pre" CSS is needed; the font-family, border, and background CSS attributes are optional.

enjoy,
-e
Reply all
Reply to author
Forward
0 new messages