In Microsoft Outlook, there is no way to embed a code snippet although it supports HTML-formatted emails. There might involve a code snippet while sharing emails.
I had to report my overseas manager about the solutions for a problem statement that he sends me before every week.
I do a full-time job where I build tools required for one of the internal teams.