Sublime Forum

Displaying draw.io diagrams in sublime

#1

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?

0 Likes

#2

Technically possible with an imaginary plugin.

0 Likes

#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