Wrote a Blog Post
I just wrote a short TIL on how I do code syntax highlighting in PowerPoint for my programming talks.
At first, I did it by hand... And it was painful!
Then, I discovered that if you copy code from an IDE like Visual Studio Code and paste it directly into PowerPoint, the syntax highlighting from Visual Studio Code is preserved!

You can read the short article here: https://mathspp.com/blog/til/code-syntax-highlighting-in-microsoft-powerpoint