Styling individual cells in a WikiText table

116 views
Skip to first unread message

Cade Roux

unread,
Apr 23, 2021, 6:21:02 PM4/23/21
to TiddlyWiki
I have a table and I am using WikiText because of the ability to use ~ and < to merge up and left - this is very convenient when generating the data tables in my build process so I don't have to look ahead indefinitely down and to the right.

But I am finding need for more formatting (specifically making the background of a cell change due to content), but if I move to and HTML table, I will lose that ~ and < capability and have to look ahead in my data to decide when to merge cells using rowspan and colspan.

So I am looking to see if there is a way to style a cell in a WikiText table.

Thanks,

Cade

David Gifford

unread,
Apr 23, 2021, 6:55:34 PM4/23/21
to TiddlyWiki
Sorry Cade, you need to use HTML tables to get cell-specific styling.

john.edw...@gmail.com

unread,
Apr 23, 2021, 7:05:38 PM4/23/21
to TiddlyWiki
something like this maybe?

|One|Two|Three|h
|My Data Standard|@@background-color:red;My Data Red Background@@ |@@color:green;background-color:yellow;My Data Yellow Background and Green Text@@|
|styles in tables example |>|>|

Cade Roux

unread,
Apr 23, 2021, 7:13:38 PM4/23/21
to TiddlyWiki
This looks promising enough for what I need.

Thanks,

Cade

Reply all
Reply to author
Forward
0 new messages