question

RodFalanga avatar image
0 Votes"
RodFalanga asked SharonZhao-MSFT commented

Is it possible to specify the programming language, when posting a message?

This past week I learned that where I work they're going to go back to using Microsoft Teams from WebEx. YEAH!!!

However, there is one thing I really like to use in WebEx that I've experienced in other places such as Slack. When sharing a code snippet in WebEx, Slack, etc. using Markdown I will start by pasking 3 back tic marks, then the language involved. Then I'll paste or write the rest of the code snippet and finish by ending with 3 back tic marks on the last line.

Even though we haven't used MS Teams in about a year I still have the Teams app installed on my Windows 10 Enterprise laptop. I tested it last Friday but wasn't too impressed. MS Teams does have some of the ability. You can start typing 3 back tic marks, but immediately after the third back tic Teams editor window does into a code snippet entry mode. I really wanted to specify the programming language, such as SQL, or C# or something like that. And after a year of typeing sql or c# it is going to be awfully hard not to do that when we do switch back to MS Teams. I'm hoping this is either the case that our version of MS Teams is now a year old so that Markdown functionality has been improved, or there's plans in the works to include that functionality in a future version of MS Teams

office-teams-windows-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SharonZhao-MSFT avatar image
0 Votes"
SharonZhao-MSFT answered SharonZhao-MSFT commented

@RodFalanga,

Sure, you could specify a programming language when sending messages in Teams client.

To send a code snippet in a chat or channel message, first click Format 84372-image.png below the compose box, then select Code snippet 84319-image.png in the format bar. This opens a dialog box, where you can enter your code as well as a title for the snippet. Select the language you want to use, and choose whether you want your text to wrap.
84334-image.png


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





image.png (351 B)
image.png (397 B)
image.png (42.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SharonZhao-MSFT, that's OK, but still not what we'll be used to. And it doesn't seem to match what's done in places like GitHub, Slack, Discord, etc. Nevertheless, if that's the way it is, that's how we'll have to get used to it.

0 Votes 0 ·

@RodFalanga
This feature will indeed make a difference experience to you, sometimes with a few inconveniences at first. However, the main purpose is to improve the product and bring better experience and more possibility to all. Thanks for your understanding.
Have a nice day!

0 Votes 0 ·