I have the following dot sample. I would like to give the first section in each record (the table name) a different background and foreground colour. I can\'t find any examp
I'm pretty sure that it's not possible. Instead you should use HTML-style labels, that are a more developped form of record nodes. You can define your node using the With HTML labels, your example becomes as follows: Here is the result: tag, and set the color using
bgcolor="your_color". A list of available colors is available here: http://www.graphviz.org/doc/info/colors.html (you also have a RGBA way of doing it, as described here: http://www.graphviz.org/doc/info/attrs.html#k:color)
digraph G
{
rankdir = LR;
node1
[
shape = none
label = <
>
]
node2
[
shape = none
label = <corpus_language id: en name: Englist sentence_count: 1027686
>
]
node1:port2 -> node2:port6 [label="language_id"]
}
corpus_sentence id: 1241798 text: Baseball is a sport creator_id: 10859 created_on: 2006-11-14 17:58:09.303128 language_id: en activity_id: 11 score: 124 