unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Making coloured table from array values
@ 2022-11-04 10:09 Heime
  0 siblings, 0 replies; only message in thread
From: Heime @ 2022-11-04 10:09 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


I would like to make a table that is coloured.

For instance, I have the following five element array [3 2 1 0 0] and would like
a table with four columns (first one for a title) with the rest of the columns 
coloured according to the array values (3 means colour the last three table columns,
0 means no colouring).

[3 2 1 0 0] giving
 
Title 1 | Green | Green | Green |   (3-columns coloured)
Title 2 | Amber | Amber |       |   (2-columns coloured)
Title 3 | Amber |       |       |   (1-column coloured) 
Title 4 |       |       |       |   (0-columns coloured)
Title 5 |       |       |       |   (0-columns coloured)








^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-04 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-04 10:09 Making coloured table from array values Heime

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).