Whether it's for educational purposes in a tutorial or just sharing an idea with a friend, often in our dev workflow it's important to know some beautiful code snippet creation tools.
From capturing directly from code editor I use Polacode.
If I need a specific design for the snippet, I usually use Carbon.sh
What are your weapons/methods of choice?