Gmail Syntax Highlighter

gmail, highlighting, syntax-highlighting

Solution

consider using gist.github.com

some benefits:

- you can copy and paste the syntax highlighted code into gmail

- (its not always perfect but gets the job done, see screenshot below)

- snippet(s) can be shared with a hyperlink (also bookmarkable)

- you don't need an account to share code snippets

- code can still be kept private and is only shared with those have the secret link

- you can specify the language or snippet type, or even multiple snippets on a single page

- each lang can be specified with github flavored markdown

- you can also access historical changes of the snippet making it easy to track revisions over time

Problem

I sent my code to my friend over Gmail but as you guess, the code is not highlighted in Gmail. Is there solution to highlight code that is sent over Gmail?

Original source