Styles - Visual Studio Code Snippet Copying and Pasting Outlook (HTML) - Keep the Style?

I am a fan of the Son of Obsidian Visual Studio Style (white / color letters on a dark gray background).

It's also great that Outlook is trying to maintain syntax highlighting, however I use the default white background in Outlook. As a result, I must either deselect the syntax for the code fragments that I send by e-mail to employees, or set the background color in the mailbox darker.

I tried the Copy as HTML plugin, however this did not override the background color for the code snippet in Outlook.

Has anyone come up with a good solution for this kind of workflow?

+4
source share
1 answer

Hi, this is a really late answer:

I use the same theme. You can refer to this article for general steps. http://codinglifestyle.wordpress.com/2013/05/17/copy-and-paste-formatting-with-visual-studios-dark-theme/

The article tells how to do the opposite of what we want, so I went out with this:

<style type="text/css">pre{background:#344042 !important}</style><pre> 

and it does a great job.

0
source

All Articles