As you may already know, Teams has been allowing you to format your message in chat using the Format option
Well, the formatting options have evolved and now offer a ‘code snippet’ formatting to allow you sharing code while keeping the language-based color syntax
This is quite handy if you have to share code with your teammates.