how to embed or share a gits in my blog wordpress?

I am new in worpdress but I would like to share my code gits in my blog wordpress.

so then I made a gits in github:

(this code it is just a example for this question)

but when I try to share my gits in wordpress I got this:

does anyone know how I can fix that and share my code in wordpress?

note:** my blog wordpress is in a hosting web i dont use the platform from wordpress I have installed the wordpress in my blog. **

Topic github Wordpress

Category Web


In your screenshot, there's an Embed option with <script> tag in it. Take that code and add it to a Custom HTML block.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.