Idea

Paste code snippets

  • 7 August 2020
  • 7 replies
  • 2580 views

Userlevel 4

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

 


7 replies

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("!")

 

Reply