Petrify is the easiest way to convert source code into images on Mac. Get your source code into Petrify, customize the image, and export it anywhere. Petrify features: - Easily drag source code onto the Dock icon. - Send code to Petrify through the Services menu. - Drag generated images into Finder, apps or social media. - Instant image creation. - Syntax highlighting. - Multiple themes. - Multiple fonts. - Customizable background colors. Note that generating images from text is detrimental for people with visual impairment. It also prevents your readers from copy-pasting your snippet into their work. Consider alternatives in the form of regular code blocks with syntax highlighting for websites, adding an image description, or linking to the code in plain text.