I would suggest not using images for the code but rather making an actual code look editor.
Or make a copy button, that allows the user to copy and paste the code directly into their clip-board.
Please hit the reply button or i do not get notified.
Helpful tools–> https://codepen.io/Mike-was-here123/post/check-out-these-sites
Thanks for the sugestion!