I added this solution to the Asciidoctor wiki (just to get it recorded).

https://github.com/asciidoctor/asciidoctor/wiki/How-to-set-the-background-color-of-a-table-cell

Asciidoctor doesn't support {set:name:value} yet, so this is not possible
until then.

-Dan


On Fri, Apr 12, 2013 at 2:09 PM, Dan Allen <[email protected]> wrote:

> On Fri, Apr 12, 2013 at 2:07 PM, Dan Allen <[email protected]> wrote:
>
>>
>> I got it to work using the set macro. Here's my sample document:
>>
>> [cols="2"]
>> |===
>> |a
>> |b
>> |d
>> {set:cellbgcolor:red}
>> |e
>> {set:cellbgcolor:none}
>> |===
>>
>
> This can be simplified to:
>
> [cols="2"]
> |===
> |a
> |b
> |d
> {set:cellbgcolor:red}
> |e
>  {set:cellbgcolor!}
> |===
>
> Note how I'm clearing the document variable.
>
> -Dan
>
> --
> Dan Allen
> Principal Software Engineer, Red Hat | Author of Seam in Action
> Registered Linux User #231597
>
> http://google.com/profiles/dan.j.allen
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
>



-- 
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to