Quote Originally Posted by Qwertystop View Post
Proof of concept
[highlight=yellow]a[/highlight] [highlight=yellow]b[/highlight]
c d
First row is [highlight=yellow]highlighted[/highlight] cell by cell inside the td tags, second surrounds the tr tag block with highlight tags.
A more intuitive way to do this would be to make a "highlight" class that can be applied to the table, much like Grid works now. Someone earlier in the thread already showed that you can apply a class to individual cells (ie set TD class=outerborder, while the rest of the table has class=grid, to get a single cell without borders). So apply that same logic in implementing the highlights, except use it on the table rows. So instead of [tr], you'd have [tr=highlight:{color}].


The ideal way for simplicity would be to simply make a table class that gives [th] cells the dark brown coloring, and [tr] rows gaining css property nth-child(even), using that selector to highlight half the rows with the lighter brown color. Then just call that whole package "class: traditional", the former way is more complicated for a user to implement but allows more customization overall.