Simplify formatting of code/monospace blocks

With the new editor, there is one major regression that is quite annoying for us. When you paste a block of code, all lines are turned into paragraphs. When you select these lines and format them as monospace (Ctrl+Shift+M), they remain separate paragraphs.

When you start a fresh paragraph, format as monospace (Ctrl+Shift+M), enter some text and hit enter, Asana inserts a line break instead of a paragraph break. Hence I think the following behavior would be consistent:

When you select multiple consecutive paragraphs and format them as monospace, paragraph breaks should be turned into line breaks.

This IMO would be a great UX improvement and a simple solution to Code snippets in Asana - #259 by Bacontastic.

19 Likes

yes! this is annoying. there seems to be no way to have an embedded code block with multiple lines. Even Shift-Enter doesnā€™t work when typing within a code block - it ends the block.

2 Likes

Im encountering formatting issues when pasting code in an Asana task right now, so Iā€™m assuming this isnā€™t implemented yet. I seriously think this should be implemented by now, and hope someone looks at this or maybe Iā€™m just not doing it correctly? The line breaks are really making the code ugly and hard to read.

1 Like

I am desperate for this. PARAGRAPH BREAK FOR CODE FORMAT

2 Likes

+1, multi-line code blocks are a necessary feature!

1 Like

PLEASE add this. +1.

I saw this excerpt in an Asana Forum Summary:

* To support both quote blocks and code blocks in the Asana product, the HTML tags

and
 have been added to all Asana objects that interact with [rich text](https://developers.asana.com/docs/rich-text)!

This does not yet work for Task Descriptionsā€¦ Why? Please add this feature.

Yes - see:

Thanks, but I canā€™t see the attached image. Iā€™m specifically referring to multi-line code blocks. Are those possible in Asana task descriptions?

@Matthew_Haas it wasnā€™t an image, itā€™s s link to another forum post that has an image.