Insert formatted Code in your Programming blog/Website article/post

Are you having a blog/Website which has tutorials OR posts on any programming language. You might be having trouble in writing code in the normal format. To write the code in a particular coding format with proper color combination for different tokens, just as it looks like in the text editors for e.g Notepad++, SublimeText.