How to add code snippets in MS Word

If like me you have that attention to detail thingy, this should definitely bug you. The first time I encountered the inconvenience was 2 years ago. I was documenting my end of year project, an online music player on php and just couldn’t get my code into MS Office properly.