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

Rod Falanga 591 Reputation points
2021-04-04T15:56:49.587+00:00

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

Microsoft Teams Microsoft Teams for business Other
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,756 Reputation points Microsoft External Staff
    2021-04-05T02:41:53.81+00:00

    @Rod Falanga ,

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.