3 ms·
> Please just let me send code blocks in chat without messing up the line breaks... Teams supports inline and multi-line code blocks using Markdown formatting.
by CharlesW 4y ago
> Please just let me send code blocks in chat without messing up the line breaks...
Teams supports inline and multi-line code blocks using Markdown formatting. I can't try it ATM, but does that not work as it does in Slack?
- thedougd 4y agoTeams code blocks using triple tick screw up indenting. To get a semi functional code block I have to click 3+ buttons in the text formatting screens. It’s a train wreck.
- montroser 4y agoIn a 1:1 chat, there's no support for multi-line code blocks. There _is_ support in team channels, but when you copy-paste on the receiving end, line breaks don't make it through into the paste buffer.
- DasCorCor 4y agoIt’s buggy as hell and non-intuitive
- unscaled 4y agoTeams does not use proper markdown formatting. In both Teams and Slack you can open a code block with three apostrophes (```), but in Slack you can also use three apostrophes to close it. In Teams that doesn't work - the only way to close a block is to type in two consecutive line breaks. This means you cannot have empty lines in the middle of your code (at least not without workarounds).
- Zecc 4y agoShift+Enter is your friend, at least in that one particular situation. Alt+Enter seems to work as well. Ctrl+Enter will send the message.