Especially on twitter those fancy snippets appear a lot at the moment. They tend to clarify some tipps or share knowledge about some specific portion of code. I appreciate that, as nice discussions can spin up on such topics.
Those snippet-shots raised a nifty little service called @carbon_app which allows you to provide some code snippet and lets you generate a well designed image of your code - ready to share on twitter.
If you plan to share some code, you should definetly give carbon.now.sh a shot.