How to achieve images as such..?

How to achieve images as such..?
0

#1

I want to post a few codes to my social feeds in the format like this…

Does anyone know how to achieve this…???
Is there an online tool or utility.


#2

Screenshots?


#3

Monospace with syntax highlighting?


#4

Thanks for the replies @ArielLeslie and @Undigon
But what I was looking for was found here.

https://carbon.now.sh/