需要:
- java
- sublime
- graphviz
- sublime-plantuml插件
插件:
- 使用
Command-Shift-P
打开 Command Palette
- 输入
add repository
找到 Package Control:Add Repository
- 在下方出现的输入框中输入
https://github.com/jvantuyl/sublime_diagram_plugin.git
然后回车 - 等待添加完成后再次使用
Command-Shift-P
打开 Command Palette
- 输入
install package
找到 Package Control:Install Package
- 等待列表加载完毕,输入
diagram
找到 sublime_diagram_plugin
安装 - 重启
Sublime Text
- 使用
Command-Shift-P
打开Command Palette
- 输入
add repository
找到Package Control:Add Repository
- 在下方出现的输入框中输入
https://github.com/jvantuyl/sublime_diagram_plugin.git
然后回车 - 等待添加完成后再次使用
Command-Shift-P
打开Command Palette
- 输入
install package
找到Package Control:Install Package
- 等待列表加载完毕,输入
diagram
找到sublime_diagram_plugin
安装 - 重启
Sublime Text
Install graphviz on Mac OSX
About the App
- App name: graphviz
- App description: Graph visualization software from AT&T and Bell Labs
- App website: http://graphviz.org/
Install the App
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
and press enter/return key. Wait for the command to finish. - Run:
brew install graphviz
Done! You can now use graphviz
.
遇到问题:
- 打开sublime 提示 Unable to load diagram plugin, check console for details。控制台具体提示Exception: No working processors found!
- google后 https://github.com/jvantuyl/sublime_diagram_plugin/issues/12 这个人遇到同样问题。他重安graphviz修复。跟帖的一个人和我一样重安还是不行。执行 brew link --overwrite graphviz 解决。
使用:具体使用自行搜索plantuml,command+m 生成图。