Paste code snippets


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

 

Is there already something excisting in miro as here described?


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. 


This would be nice to have. Any updates?


This would be nice to have. Any updates?

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


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!


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.


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.


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!


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 


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


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.

 


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.


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


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

 

 


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


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

 

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


Hey,

Would love to have this feature.

Any news on that?


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