How can I insert code blocks in draw.io UML

Viewed 267

I am drawing UML with draw.io. And I want to insert a code block aside a class UML. When I write code(java/c) in a 'Text' block, it seems not tidy. Is it possible to insert a tidy code block (like markdown code block) in a UML page of draw.io?

1 Answers

There is no native support for "tidy" code blocks in draw.io.

A work-around would be to create a picture of your code block using a tool like carbon and import it into your UML diagram as an image.

Related