Skip to main content

I am trying to create an Miro app which creates and populates code blocks. Is this even possible? Was not able to find in the documentation how to do this.
If not, is there a work around like e.g. createing text blocks first and then using MiroAI to convert the text blocks into code blocks?

@BenRai I didn't see any mention of code blocks in the developer docs on this page:

https://developers.miro.com/docs/miro-web-sdk-board-items-crud

But then searched the developer docs for "code blocks" and found this:

https://developers.miro.com/docs/board-items#unsupported-items

 

I'm not sure of a workaround at this time. Let's see if a Mironeer or another community member have an idea. 

 


You can create code blocks in Miro using a Miro app or widget that supports code formatting or embeds.


@Jack Wills Thanks for your feedback. Since I am trying to create my own Miro app I could implement this. Could you elaborate how to add code formatting to my app or point me to relevant documentation?
Sorry if this is a baic question, its my first time creating an App for Miro


@BenRai I believe that ​@Jack Wills was not fully understanding the context of your question. As you have stated, you are attempting to do this using Miro’s Web SDK.

AFAIK, the only widgets that support code-style formatting are in the following two widgets (both not yet supported in the Web SDK):

  1. Code block
  2. Miro docs (Ctrl/Cmd + E to format text as inline code – more on this here).

I believe that your only options at this time for creating something that looks like code is to

  1. Create either a shape or text widget
  2. Set the fontFamily to plex_mono, i.e., non-ambiguous, mono spaced
  3. Set the lfont] colour to white
  4. Set the fillColour to black 

@Robert Johnson , thanks for your feedback. Do you know if there are plans to make the creation of code block possible soon or where one could suggest this as a feature?

 


@BenRai Unfortunately, as a volunteer moderator of this forum, I have no insights into future capabilities of the Web SDK/REST API.

As for requesting a feature, you can post in the wish list forum.

Wish List Idea Post

I’d recommend adding this as an Idea in the Wish List category by following the guidelines here: Wish List: Everything You Need to Know.

If you do create a Wish List Idea post, I would also recommend that you post a link to it back here, so that future readers of this post can quickly get to and vote for your Idea.


Reply