How shall escape `>` in an edge label?

2019-08-07 14:57发布

In my dot file

stdin_in -> file_out [label=<<font color="blue">tee >/dev/null</font>>];

tee >/dev/null is supposed to be the text of the label, but it contains > which is a special character, so dot complains about it. What shall I do instead? Thanks.

标签: graphviz dot
1条回答
Summer. ? 凉城
2楼-- · 2019-08-07 15:34

Put the text in quotation marks; changing the line to

stdin_in -> file_out[ label = "tee > /dev/null" fontcolor = "blue" ];

produces the desired result:

enter image description here

查看更多
登录 后发表回答