On Tuesday, May 18, 2021 at 7:31:15 AM UTC+2 Pekka wrote:
For example, if I would type: ++ Custom block of text ++, then the HTML
> output would be <div style="background-color: #FFF">Custom block of
> text</div>, or wrapped in any other HTML blocks I choose.
>
A configuration like this isn't very future prove. Hardcodeing styles like:
<div
*style="background-color: #FFF"*>Custom block of text</div> ... should be a
absolute last resort, if there is no other way. .. It will limit you in the
future. Trust me!
You should use: <div *class="myClass"*>Custom block of text</div> and
create a tiddler with your "custom-styles" which is tagged:
$:/tags/Stylesheet
title: my-custom-styles
tags: $:/tags/Stylesheet
.myClass {
background-color: #fff;
}
This is much more flexible, if you need to change the color in the future.
.. You only need to change 1 CSS tiddler instead of every tiddler which
contains the hardcoded code. ... Even if the custom-markup plugin is used.
Just a thought.
-mario
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki/8cf96436-4c84-49eb-9329-6a1b4d4c6982n%40googlegroups.com.