Share via

Microsoft Teams Insert Code Block is Broken

Anonymous
2021-05-17T21:11:20+00:00

Prior to ~April 2021, typing three backticks in Microsoft Teams would open a compose box where code could be pasted. After ~April 2021, this no longer works. Has this broken for anyone else?

This page claims that Teams should support markdown formatting, but many of these features are very buggy/broken: https://support.microsoft.com/en-us/office/use-markdown-formatting-in-teams-4d10bd65-55e2-4b2d-a1f3-2bebdcd2c772

I am running Microsoft Teams Version 1.4.00.12663. It was last updated on 5/11/21.

Microsoft Teams | Microsoft Teams for business | Chats | Group chats

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
  1. Anonymous
    2021-10-11T17:34:49+00:00

    Quick PSA: Insert Code Block now seems to require [backtick][backtick][backtick][space]

    I was used to typing [backtick][backtick][backtick][enter], but that doesn't work now.

    400+ people found this answer helpful.
    0 comments No comments

14 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-10-15T15:12:41+00:00

    Whilst the [backtick][backtick][backtick][space] thing works, pasted in text does not preserve whitespace indentation - making it rather useless for its intended purpose.

    Also https://support.microsoft.com/en-us/office/use-markdown-formatting-in-teams-4d10bd65-55e2-4b2d-a1f3-2bebdcd2c772 does not mention anything about space or enter. Previously it just worked without enter or space, and indentation was preserved.

    20+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-10-14T17:42:03+00:00

    Quick PSA: Insert Code Block now seems to require [backtick][backtick][backtick][space]

    I was used to typing [backtick][backtick][backtick][enter], but that doesn't work now.

    I can confirm this behavior with Teams version 1.4.00.22368. Like others in this thread who have resorted to the Nuclear Option to correct the issue, I did the same with no success. But finding @Timothy-Bird's observation of the [triple-backtick][SPACE] requirement totally blew me away since I'm sure No-One Got the Memo From Microsoft that this behavior had changed. [Triple-Backtick][ENTER] is normative Markdown IIRC, and it's muscle memory to boot..

    First question I ask anyone in Ops when something breaks is "What changed?", followed by "Why?". The answers usually flow from there……

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-11-19T11:59:01+00:00

    The same thing is happening to me - the only way to make Windows client keep formatting and alignment is to use the stupid code snippet button, which then creates so much wasted space in the chat message as it shows as an embedded object, sort of...

    Regardless of whether I type in the code or paste it. Actually, it does not even matter if it's 'code' - it can be any kind of white-space formatting you put in....for example if you do not want to bother with bullets/lists but just type one line and another below it indented with a few spaces - it turns into two left-aligned lines.

    I do not use Teams through web browser as I use it only on my work laptop, so possible double/triple ticks + space/enter magic tricks do not work.

    Funny thing though - this forum is answers.microsoft.com...and yet, we have no answer why this issue keeps going on and on, how to get around it without 'code snippet' and why is the Teams behavior changing in such unpredictable ways.

    6 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2021-10-21T14:38:41+00:00

    I agree with Clifford.

    I have the same issue where Indentation is not preserved...

    You have Microsoft Teams Version 1.4.00.22368. It was last updated on 2021-09-20.

    4 people found this answer helpful.
    0 comments No comments