Wednesday, October 16, 2013

syntax highlighting for outlook emails

php_code_snippet

 

 

 

 

 

There are times at work where you need to send your colleague a piece of code. It can be that they are using this cool snippet of code to perform some function on their web app and you’d like to use it for your own. Or you just want to show a sample code to someone via email.

Whatever the need might be there have been more than one time that I had to send code via outlook email. But I think we all know that copy-pasting code into an email doesn’t look “pretty”. It can even make a good piece of code look quite boring!

Digging around the web for a bit can find you some simple yet cool solutions. I found ‘http://tohtml.com’ to do exactly what I wanted. It let’s you syntax highlight various types of code including html, CSS, JavaScript, PHP, Ruby etc.

All you have to do it copy paste the code into it, select the syntax type you want and click on the ‘highlight’ button as show below. It will then convert your code to nice formatted text that you can simply copy paste into your outlook email!
step1 

It doesn’t just work for outlook emails. I quickly checked and it works on gmail and yahoo mail as well.

Yes, you can attach it as text to your email but usually I just want to quickly look at the email and copy the parts of code I want. This is why I’ve found the syntax highlighted code ideal to be used in emails.

So there is one neat little tool you can use for your day to day code pasting needs. I sure will be using this a lot.

Tool web-link: http://tohtml.com

Token: GVQW3US2Y9TY



No comments :

About Me

Popular Posts

Designed By Seo Blogger Templates