Skip to main content
Delivered

Paste code snippets

Related products:Fonts & Text editingWidgets
  • Aug 7, 2020 12:54 PM UTC
  • 52 replies
  • 21728 views

I’d like the ability to paste code snippets and have them format according to the language (auto-detected with the option to chose from a drop down)

It’s actually available on here, but not on Miro (at least I haven’t found it yet!

So this:

{   "working_dir": "spps",   "extension": "spp",   "folders": [      "_in",      "_out"   ]}

Would be displayed like this:

{	"working_dir": "spps",	"extension": "spp",	"folders": [		"_in",		"_out"	]}

[edit] Looks like posting broke the formatting. I’d like the code to display clean like it does on stackoverflow:https://stackoverflow.com/a/63302229/4991204

 

Dec 5, 2022 4:58 PM UTC

Updated idea statusIdea→Delivered

52 replies

Is there already something excisting in miro as here described?


  • New Here
  • Mar 4, 2021 8:23 PM UTC

Is there already something excisting in miro as here described?

Not that I’ve come across.

 

Whenever I paste code (from Python for example) there’s no formatting for line breaks, white spaces, or language detection for syntax highlighting. What I mean by line break formatting is that I’d like the code to be pasted without wrapping the text. It’s a bit nitpicky, but it would be nice if the text box automatically scale to the size of the contents. 


  • May 17, 2021 4:52 PM UTC

This would be nice to have. Any updates?


Jerson Quintero

This would be nice to have. Any updates?

It’ll be a great feature! @Miro Community Bot 


  • New Here
  • May 24, 2021 5:52 PM UTC

Need this ‘Code block’!

Copy and pasting code out of Miro is a hassle right now as the formatting of text block copied out of Miro is never the same as what was copied in.

 

Syntax highlighting would be a very nice bonus!


  • New Here
  • Jun 4, 2021 11:44 AM UTC

Agreed - GitHub is great, but sometimes you just need a quick-and-easy place to copy and paste from on the fly


I’d like to second this.

I regularly use Miro to collaborate on technical decisions as well as design and organisational.

This includes reviewing API schemas (often in JSON), and other code snippets.

Syntax highlighting would be fantastic for improving readability.

Real-time collaborative editing of the same code would also be great, but I think a much more complex feature.

 

// The ability to add a code snippet to text is almost ubiquitous across rich-text editors.
including.thisOne("!")

 


Looking forward to this! Having this capabilities inside the Card elements would be awesome.


Would LOVE this feature. Imagine designing a system on a board, being able to show at a glance a snippet of code would be awesome.


  • New Here
  • Sep 7, 2021 7:40 AM UTC

This feature would make it a lot easier to get buy-in from development teams and using Miro more heavily. It’s tedious structuring data here, and it seems like it would probably not be the highest effort to include a basic <pre>-style code block option.


Sonia Kalwit

I think having the option to add code blocks would be a great feature on Miro! Already using the flow charts for coding logic! Looking forward to this update :grinning:


I would love this feature!


  • Beginner
  • Oct 2, 2021 2:40 PM UTC

Must-have, not nice-to-have! 

A code widget with language and style selection is a pretty common thing across other tools. Even this rich-text reply box has it! Please add an “app” for this ASAP! I need it badly.

{
"code widget"; "needed badly"
}

Someone wrote one here: https://github.com/GreenAsh/code-highlighter

Can this be trusted for enterprise use? It requires access to read boards. Is this made secure on the Miro side somehow or is our content sent “outside”?


@Anna Boyarkina check out: https://github.com/GreenAsh/code-highlighter 


  • Beginner
  • Oct 14, 2021 12:59 PM UTC

This is an absolute must!  It means I will need to use something else (such as confluence) instead of miro.


  • Beginner
  • Nov 11, 2021 9:55 PM UTC

This really is almost a deal breaker for my organization.  Between the lack of code formatting, and the max lines of text in a text box, it’s really limiting how my team uses the tool.  
(which really is a great tool, keep up the good work)


Please prioritize the developer users’ needs.

Thank you.

 


  • New Here
  • Nov 13, 2021 8:16 PM UTC

One year old post and request … and nothing yet… I wonder if Miro staff is even reading this.

I just came across the same need (i had to paste some code from Arduino IDE)… and i got really disappointed.


  • Beginner
  • Dec 13, 2021 12:01 PM UTC

I need this feature too.

would be great to have this. I just stumbled accross the limit of text box.

would be great to insert text files (*.c/*.ini/*.cpp./h) like other documents


  • Beginner
  • Dec 13, 2021 1:30 PM UTC

I need this feature too.

would be great to have this. I just stumbled accross the limit of text box.

would be great to insert text files (*.c/*.ini/*.cpp./h) like other documents

 

One thing we’ve been using to get around the limit is to link google docs. You can actually “embed” them in the miro board, which is actually better than dealing with the text fields.


 


Please listen to your customers and implement this

 

 


  • New Here
  • Feb 3, 2022 10:06 AM UTC

Please implement code snippets. Our company would really appreciate this.


  • New Here
  • Feb 3, 2022 10:22 AM UTC

@Anna Boyarkina check out: https://github.com/GreenAsh/code-highli​​​​ghter

 

Thank you for the link. That worked for me! :thumbsup_tone5:


  • New Here
  • Feb 24, 2022 9:16 AM UTC

Hey,

Would love to have this feature.

Any news on that?


  • New Here
  • Mar 3, 2022 7:01 AM UTC

Come on Miro.. this is a no brainer!!!