在 sublime 之中 build a system named GraphViz
,内容如下:
{
"cmd": ["dot", "-Tpng", "-o", "$file.png", "$file"],
"selector": "source.dot",
"variants":
[
{
"name": "Graph2View",
"cmd": ["subl", "$file.png"],
}
]
}