概要
エクセルでUML図やフロー図を書くのがもー嫌で嫌で代替え案を探していました。
http://hige-sun.net/plantuml-on-atom/
こちらの記事を参考に(というかまるっと)追ってやった時のメモです。
前提
- Mac
- Atomがインストールされていること
- javaがインストールされていること
plantUMLインストール
ココからPlantUML compiled Jarをダウンロードする
ダウンロードしたファイルplantuml.jar
は、PlantUMLファイルを画像化する時に使います。
Atom pluginインストールと設定
atom pluginインストール
- plantuml-viewer
- language-plantuml
plantuml-viewer plugin設定
-
Charset
をutf8
にすること - 再起動(自分は再起動しないとViewが表示されませんでした)
サンプルコード
sample.pu
@startuml{you&i.png}
you -> I : hello
I -> you : hello
|||
loop 1, 3
you -> I : shall we dance?
end
|||
you <- I : sure, my pleasure♡
note right: oh! handsome guy♪
@enduml
ビューを表示する
platUMLファイルを画像化する
java -jar plantuml.jar file/sample.pu
you&i.png
画像ファイルができる