如何使用点在 GraphViz 的标签中使用 \"?
How can I use \" in a label in GraphViz using Dot?
我正在使用点 - graphviz 版本 2.26.3 (20100126.1600)
我想要一个具有以下标签(包括 \ )的节点:
此处输入文字\"\" 更多文字
我试过将 \" 替换为 \", \\",
问题是 GraphViz 将 \" 解释为 ";不管怎样
如何在标签中输出\"\"?
digraph Quote{
node [shape="record", style="rounded"];
edge [style="dashed"];
Explain [label="<0>\| <1>\| <2>\| <3>\"|<res> result"];
n0 [label="backslash to escape next backslash"];
n1 [label="backslash"];
n2 [label="backslash to escape next quote"];
n3 [label="quote"];
n4 [label="\\""];
Explain:0 -> n0;
Explain:1 -> n1;
Explain:2 -> n2;
Explain:3 -> n3;
Explain:res -> n4;
}
我正在使用点 - graphviz 版本 2.26.3 (20100126.1600)
我想要一个具有以下标签(包括 \ )的节点:
此处输入文字\"\" 更多文字
我试过将 \" 替换为 \", \\", 问题是 GraphViz 将 \" 解释为 ";不管怎样
如何在标签中输出\"\"?
digraph Quote{
node [shape="record", style="rounded"];
edge [style="dashed"];
Explain [label="<0>\| <1>\| <2>\| <3>\"|<res> result"];
n0 [label="backslash to escape next backslash"];
n1 [label="backslash"];
n2 [label="backslash to escape next quote"];
n3 [label="quote"];
n4 [label="\\""];
Explain:0 -> n0;
Explain:1 -> n1;
Explain:2 -> n2;
Explain:3 -> n3;
Explain:res -> n4;
}