Applies To
Microsoft Teams
  1. In the area where you type messages, select  Teams format icon Show Formatting options.

  2. Select  Code block button icon. Code block from the task bar.

  3. Select the Excel Ribbon Menu Down Arrow icon down arrow above the code area and choose a specific language, like C#, HTML, or Java. 

  4. Enter your code for the snippet, and then select Teams chat send button icon Send.

Tip: When you choose a language, Teams applies color syntax highlighting to your code snippet.

Color syntax highlighted snipped screen shot.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.