Codepng allows you to create awesome snapshots from your source code that you can share on social media. Choose between beautiful hand-selected background gradients and editor themes before exporting your code to PNG images.
See outline of code on Github - functions, classes and interfaces used in the code. Clicking scrolls to the corresponding line in code. Currently only works for Java, Javascript and Typescript.