Email Marketing Tool

HMoreno1
Member

Embed Code Snippet

SOLVE

Hi, 

I am trying to add a code snippet to an email without the format changing. For example, I paste this code into the email and it reformats it to all be in a straight line and loses its coloring. Is there any way I can make it to embed code as is? (but just have it preview the code text not actually show something from the code). 

Screenshot 2024-04-25 at 12.11.05 PM.png

0 Upvotes
1 Accepted solution
Jnix284
Solution
Hall of Famer

Embed Code Snippet

SOLVE

Hi @HMoreno1 there is no code block option or styling for code in email because sending code directly in email would trigger all kinds of spam flags.

 

My suggestion would be to use a GitHub gist or create a website page, landing page, blog page, knowledge base article, etc. that has your code and link to that in the email - you could use a screenshot as a placeholder for the code in the email.

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon

View solution in original post

0 Upvotes
1 Reply 1
Jnix284
Solution
Hall of Famer

Embed Code Snippet

SOLVE

Hi @HMoreno1 there is no code block option or styling for code in email because sending code directly in email would trigger all kinds of spam flags.

 

My suggestion would be to use a GitHub gist or create a website page, landing page, blog page, knowledge base article, etc. that has your code and link to that in the email - you could use a screenshot as a placeholder for the code in the email.

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Upvotes