Syntax highlighting in email

Is it possible to have syntax highlighting in the newsletter that is sent to subscribers?

I added prism.js and when I check my posts on the website the syntax highlighting works perfectly but it’s not working in the email that is sent to my subscribers.

Is it possible to have syntax highlighting in the emails as well?

Email clients do not run any javascript so syntax highlighting with prism.js or similar isn’t possible.

Yeah I figured that already so I guess I’ll have to do something like pre-compile syntax highlighted code and embed it as HTML.