Is there any way to display draw.io diagrams in sublime text 4?
This kind of support exists in other code editors (even to the point of an actual editor in vscode). personally i find it very comfortable to have my design right alongside my code while writing it.
Perhaps there’s a package I missed that implements that?
Displaying draw.io diagrams in sublime
0 Likes
jfcherng
#2
Technically possible with an imaginary plugin.
- use installed draw.io app to convert
.drawio
file into PNG file - display the (cached) PNG file in a preferred way
0 Likes
phantom
#3
This should be possible with Formatter
I am the author of this plugin and for a very short time here.
You might need to add “plain” or “text” as syntaxes as there is no specific syntax highlighting plugin for drawio.
"drawio": {
"info": "https://github.com/jgraph/drawio-desktop",
"disable": false,
"format_on_save": false,
"format_on_paste": false,
"syntaxes": ["drawio", "plain"],
"type": "graphic",
"render_extended": true,
"executable_path": ["/Applications/draw.io.app/Contents/MacOS/draw.io"],
"config_path": {
"default": "${packages}/User/formatter.assets/config/drawio_rc.yaml"
}
/* executable_path for macosx is /Applications/draw.io.app/Contents/MacOS/draw.io, no dark-theme for png. */
},
Version 1.4.3, that includes drawio, is on the way to Packages Control in ca. 1 hour for download.
Hope that helps.
1 Like